1 (edited by De-Backer 2020-09-22 17:56:34)

Topic: Qt 6.0 development and qelectrotech

Currently, the Qt 6.0 development timeline is planned to be the following:

Structure and platform freeze at 30th June
Feature Freeze at 31st August
Alpha Release at 14th September
Beta 1 Release at 1st October
Release Candidate at 17th November
Final Release 1st December

Qt 6 requires C++17    =>mod  pro file of qelectrotech
the build system (move from qmake to cmake as Qt's internal build system) => we can still use qmake, but qmake may disappear in the future
https://wiki.qt.io/CMake_Port


and for qelectrotech:
built on Alpha fail
- KWidgetsAddons KCoreAddons: built on Alpha fail => I have temporarily deleted it on my disk for further testing
- QPrinter => I am now working on it

https://wiki.qt.io/Checklist_for_Qt_6.0_inclusion

Qt XML
Status Summary    Not Ready
Cmake port    Done
Jira backlog    N/A (assessment for Qt 6 not done yet)
Recent CI SHA    yes
gitmodules/submodule bot    N/A (qtbase)
Comments/Circumstance   
Qt XML Patterns
Note, this module is deprecated in Qt 5.15 and therefore may no longer be shipped in Qt 6.

Re: Qt 6.0 development and qelectrotech

Great news Simon, I hope KF5 build again.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

3 (edited by De-Backer 2020-09-22 18:11:14)

Re: Qt 6.0 development and qelectrotech

scorpio810 wrote:

Great news Simon, I hope KF5 build again.

Is the have KF5 absolutely necessary?
this provides 2 function
-kbuttoncolor
-backup

if we can do this without it, it is easier for cl

GitHub wrote:

Welcome to the code scanning beta
Your account, De-Backer, is off the waitlist—you're all set to start using code scanning on public repositories!

Learn more about code scanning.

Run failed for master (08a8250)
Repository: De-Backer/qelectrotech-source-mirror
Workflow: CodeQL
Duration: 1 minute and 50.0 seconds
Finished: 2020-09-09 20:28:18 UTC

View results

Jobs:
Analyze (cpp) failed (1 annotation)

:-/

Re: Qt 6.0 development and qelectrotech

For me is a pain and a lot of complications for QET packaging and for Qt Webassembly test but is great for Joshua, it keeps him from reinventing the wheel.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Qt 6.0 development and qelectrotech

scorpio810 wrote:

For me is a pain and a lot of complications for QET packaging and for Qt Webassembly test but is great for Joshua, it keeps him from reinventing the wheel.

a wheel like "singleapplication" would be perfect

6 (edited by De-Backer 2020-09-24 22:27:34)

Re: Qt 6.0 development and qelectrotech

De-Backer wrote:
scorpio810 wrote:

For me is a pain and a lot of complications for QET packaging and for Qt Webassembly test but is great for Joshua, it keeps him from reinventing the wheel.

a wheel like "singleapplication" would be perfect

a wheel for kbuttoncolor:
https://github.com/De-Backer/qt-color-p … ool-button

Todo:
KAutoSaveFile class

Re: Qt 6.0 development and qelectrotech

KDE crash of my PC, I'll be off-line for a moment nomicons/unsure ,that's just my luck.

Re: Qt 6.0 development and qelectrotech

https://teejeetech.in/timeshift/

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Qt 6.0 development and qelectrotech

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Qt 6.0 development and qelectrotech

https://www.qt.io/blog/qlist-changes-in-qt-6

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

11 (edited by De-Backer 2020-09-30 22:05:10)

Re: Qt 6.0 development and qelectrotech

71 Issues for built on qt6  nomicons/unsure

21:56:36.292 Info: Start-up 
21:56:36.305 Info: debugging enabled: false 
21:56:36.305 Info: Qt library version: 6.0.0 
21:56:36.305 Info: Qt library location default prefix: "/home/simon/Qt/6.0.0/gcc_64" 
21:56:36.306 Info: Qt library location documentation: "/home/simon/Qt/6.0.0/gcc_64/doc" 
21:56:36.306 Info: Qt library location headers: "/home/simon/Qt/6.0.0/gcc_64/include" 
21:56:36.306 Info: Qt library location libraries: "/home/simon/Qt/6.0.0/gcc_64/lib" 
21:56:36.306 Info: Qt library location executables: "/home/simon/Qt/6.0.0/gcc_64/libexec" 
21:56:36.306 Info: Qt library location Qt binaries: "/home/simon/Qt/6.0.0/gcc_64/bin" 
21:56:36.306 Info: Qt library location Qt plugins: "/home/simon/Qt/6.0.0/gcc_64/plugins" 
21:56:36.306 Info: Qt library location installed QML extensions: "/home/simon/Qt/6.0.0/gcc_64/qml" 
21:56:36.306 Info: Qt library location dependent Qt data: "/home/simon/Qt/6.0.0/gcc_64" 
21:56:36.306 Info: Qt library location independent Qt data: "/home/simon/Qt/6.0.0/gcc_64" 
21:56:36.306 Info: Qt library location translation: "/home/simon/Qt/6.0.0/gcc_64/translations" 
21:56:36.307 Info: Qt library location examples: "/home/simon/Qt/6.0.0/gcc_64/examples" 
21:56:36.307 Info: Qt library location Qt testcases: "/home/simon/Qt/6.0.0/gcc_64/tests" 
21:56:36.307 Info: Qt library location Qt settings: "/home/simon/Qt/6.0.0/gcc_64/etc/xdg" 
21:56:36.307 Info: "GitRevision 930bb70f99d5fd160804e43aa677e72745a5f30d" 
21:56:36.307 Info: "QElectroTech V 0.80-DEV" 
21:56:36.307 Info: "Compilation : GCC 10.2.1 20200825 [revision c0746a1beb1ba073c7981eb09f55b3d993b32e5c]" 
21:56:36.307 Info: "Built with Qt 6.0.0 - Date : Sep 30 2020 : 21:54:31" 
21:56:36.307 Info: "Run with Qt 6.0.0 using 16 thread(s)" 
21:56:36.307 Info: "CPU : model name\t: AMD Ryzen 7 3700X 8-Core Processor\n" 
21:56:36.307 Info: "RAM Total : 32027 MB" 
21:56:36.307 Info: "RAM Available : 21694 MB" 
21:56:36.307 Info: "GPU : " 
21:56:36.307 Info: "GPU RAM : @ToDo" 
21:56:36.307 Info: "OS : linux  - x86_64 - Version : openSUSE Tumbleweed - Kernel : 5.8.10-1-default" 
21:56:36.307 Info: *** Qt screens *** 
21:56:36.307 Info: "( 1 : 3840 x 2160 )" 
21:56:36.307 Info: "( 2 : 1920 x 1080 )" 
21:56:36.624 Info: Elements collection reload 
21:56:36.630 Info: Elements collection finished to be loaded 

Post's attachments

Screenshot_20200930_215656.png, 83.67 kb, 830 x 659
Screenshot_20200930_215656.png 83.67 kb, 309 downloads since 2020-09-30 

Re: Qt 6.0 development and qelectrotech

De-Backer wrote:

21:56:36.624 Info: Elements collection reload
21:56:36.630 Info: Elements collection finished to be loaded

With ~ 7000 elements in official collection?
6 ms?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Qt 6.0 development and qelectrotech

scorpio810 wrote:

With ~ 7000 elements in official collection?
6 ms?

sharp eye, no, one of the Issues

Re: Qt 6.0 development and qelectrotech

De-Backer wrote:
scorpio810 wrote:

With ~ 7000 elements in official collection?
6 ms?

sharp eye, no, one of the Issues

no elements in /usr/share/

add in run works

--common-elements-dir="...../qet/elements/"

Re: Qt 6.0 development and qelectrotech

De-Backer wrote:
De-Backer wrote:
scorpio810 wrote:

For me is a pain and a lot of complications for QET packaging and for Qt Webassembly test but is great for Joshua, it keeps him from reinventing the wheel.

a wheel like "singleapplication" would be perfect

a wheel for kbuttoncolor:
https://github.com/De-Backer/qt-color-p … ool-button

Todo:
KAutoSaveFile class

QSaveFile iso : KAutoSaveFile

https://doc.qt.io/qt-5/qsavefile.html

Re: Qt 6.0 development and qelectrotech

may i create any submodules in the project?
info submodules: https://qelectrotech.org/forum/viewtopic.php?id=1774

why:

TODO:
-remove KCoreAddons
-remove KWidgetsAddons

I would like to change this to
https://github.com/De-Backer/qt-color-p … ool-button
and QSaveFile

Re: Qt 6.0 development and qelectrotech

https://git.tuxfamily.org/qet/qet.git/c … b35acef3c3

Debian buster i386 amd64 ok
Debian Sid  i386 amd64 ok
Windows i386 amd64 ok

* Source Package: qelectrotech
* Version: 0.80.r6824-2ubuntu1
* Architecture: amd64
* Archive: ~scorpio/ubuntu/qelectrotech-dev
* Component: main
* State: Failed to build
* Duration: 9 minutes
* Build Log: https://launchpad.net/~scorpio/+archive … ING.txt.gz
* Builder: https://launchpad.net/builders/lgw01-amd64-034
* Source: not available


* Source Package: qelectrotech
* Version: 0.80.r6824-2ubuntu1
* Architecture: i386
* Archive: ~scorpio/ubuntu/qelectrotech-dev
* Component: main
* State: Failed to build
* Duration: 9 minutes
* Build Log: https://launchpad.net/~scorpio/+archive … ING.txt.gz
* Builder: https://launchpad.net/builders/lgw01-amd64-032
* Source: not available

https://git.tuxfamily.org/qet/qet.git/c … 2ad2944474

macOS ok
AppImage ok
Flatpak ok

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Qt 6.0 development and qelectrotech

I am of the opinion that we no longer send packages for Ubuntu Bionic (Qt 5.9), what do you think?
And support only Qt >=5.11.3

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

19 (edited by De-Backer 2020-10-03 20:26:00)

Re: Qt 6.0 development and qelectrotech

Right, i forgot that the min QT was 5.9, my apologies.

Version : Ubuntu 18.04 LTS
Code name : Bionic Beaver
Release : April 26, 2018
End of Standard Support : April 2023
End of Life : April 2028

does it not support QT5.11.3?
if not, I'll look for some extra code.

And for git submodules is it allowed or not?

Re: Qt 6.0 development and qelectrotech

gnu/qt5/QtConcurrent -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Irelease -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o release/richtexteditor.o sources/richtext/richtexteditor.cpp
sources/richtext/richtexteditor.cpp:90:41: error: ‘QStringView’ does not name a type; did you mean ‘QStringRef’?
  static inline bool filterElement(const QStringView &name)
                                         ^~~~~~~~~~~
                                         QStringRef
sources/richtext/richtexteditor.cpp:97:10: error: ‘QStringView’ does not name a type; did you mean ‘QStringRef’?
    const QStringView &name,
          ^~~~~~~~~~~
          QStringRef
sources/richtext/richtexteditor.cpp:127:40: error: ‘QStringView’ does not name a type; did you mean ‘QStringRef’?
  static inline bool isWhiteSpace(const QStringView &in)
                                        ^~~~~~~~~~~
                                        QStringRef
sources/richtext/richtexteditor.cpp: In function ‘bool qdesigner_internal::isWhiteSpace(const int&)’:
sources/richtext/richtexteditor.cpp:129:24: error: request for member ‘size’ in ‘in’, which is of non-class type ‘const int’
   const int count = in.size();
                        ^~~~
sources/richtext/richtexteditor.cpp:131:12: error: request for member ‘at’ in ‘in’, which is of non-class type ‘const int’
    if (!in.at(i).isSpace())
            ^~
sources/richtext/richtexteditor.cpp: In function ‘QString qdesigner_internal::simplifyRichTextFilter(const QString&, bool*)’:
sources/richtext/richtexteditor.cpp:153:34: error: invalid initialization of reference of type ‘const int&’ from expression of type ‘QStringRef’
     if (filterElement(reader.name())) {
                       ~~~~~~~~~~~^~
sources/richtext/richtexteditor.cpp:90:21: note: in passing argument 1 of ‘bool qdesigner_internal::filterElement(const int&)’
  static inline bool filterElement(const QStringView &name)
                     ^~~~~~~~~~~~~
sources/richtext/richtexteditor.cpp:154:12: error: ‘QStringView’ does not name a type; did you mean ‘QStringRef’?
      const QStringView name = reader.name();
            ^~~~~~~~~~~
            QStringRef
sources/richtext/richtexteditor.cpp:156:23: error: ‘name’ was not declared in this scope
      filterAttributes(name, &attributes, &paragraphAlignmentFound);
                       ^~~~
sources/richtext/richtexteditor.cpp:156:23: note: suggested alternative: ‘rename’
      filterAttributes(name, &attributes, &paragraphAlignmentFound);
                       ^~~~
                       rename
sources/richtext/richtexteditor.cpp:165:34: error: invalid initialization of reference of type ‘const int&’ from expression of type ‘QStringRef’
     if (!isWhiteSpace(reader.text()))
                       ~~~~~~~~~~~^~
sources/richtext/richtexteditor.cpp:127:21: note: in passing argument 1 of ‘bool qdesigner_internal::isWhiteSpace(const int&)’
  static inline bool isWhiteSpace(const QStringView &in)
                     ^~~~~~~~~~~~

and i got the reverse message in qt6..
Can they take a position in qt?  QStringView or QStringRef

Re: Qt 6.0 development and qelectrotech

scorpio810 wrote:

I am of the opinion that we no longer send packages for Ubuntu Bionic (Qt 5.9), what do you think?
And support only Qt >=5.11.3

https://snapcraft.io/install/qt513/kubuntu

Re: Qt 6.0 development and qelectrotech

https://snapcraft.io/qelectrotech

sudo snap install qelectrotech --edge

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

23 (edited by De-Backer 2020-10-03 21:51:52)

Re: Qt 6.0 development and qelectrotech

I would drop the support, Suse is also not supported (and I use it)
but we must get rid of KWidgetsAddons KCoreAddons (this makes it difficult to compile)

Re: Qt 6.0 development and qelectrotech

Yes is sometime very difficult, I don't know what changes on brew KF5 or in  https://invent.kde.org/frameworks/kcore … ts/master/ but I finished to upgrade and compile fine with Qt 5.15.1 + frameworks 5.74 on OSX .. I had to copy KF5 include and libs to Cellar/Qt .. otherwise he does not find  the #include <KAutoSaveFile> path ..

https://forum.qt.io/topic/75081/qmake-m … r-karchive

https://download.qelectrotech.org/qet/forum_img_2/osx_qt5.15.1.png

Now wait MXE python2 to python3 changes to upgrade to Qt 5.15.1 for Windows cross-compile packages, Debian removed Python2 support in unstable https://github.com/mxe/mxe/issues/2561
https://github.com/mxe/mxe/issues/2561# … -692811705

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Qt 6.0 development and qelectrotech

De-Backer wrote:

Todo:
KAutoSaveFile class

QSaveFile iso : KAutoSaveFile

https://doc.qt.io/qt-5/qsavefile.html

Use KAutoSaveFile for the backup system, instead of home made function.
https://git.tuxfamily.org/qet/qet.git/c … 20eb10303a

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."