After a couple of years exploring Machine Learning, IoT and Python, I'll return to TrafficControl. The current version of my project is Qt 5.12 - more than three years old.
Upgrading from Qt 5.12 to Qt 6.3.2 seems to be easier said than done. It is recommended to start upgrading to Qt 5.15 and after that upgrading to Qt 6.3.2.
The steps for this project are:
Build and test the program as it is, with the installed version of Qt.
There are sometimes changes to external services, such as map provider. I may also have done changes that I forgot about several years ago.
Further, my antivirus program scans the binary that I compile, and that takes some time.
https://forum.qt.io/topic/90617/avast-alarm-to-qt-5-10-1-static-build/4
I solved the issue by adding an exception to the anti virus program.
Push the current version of the program to GitHub.
I saw that I had some staged changes that I had to check. After generating an access token, I was finally able to push the changes to GitHub.
Test program for Qt 5.15
The recommended way to port an application from Qt5 to Qt6 is to upgrade to/compile for the latest Qt5 version (Qt 5.15) first, and resolve any issues. After that, one can upgrade to Qt6.
I started with disabling any Qt modules that was deprecated between Qt 5.15 by adding the following line to the pro file:
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050F00
After some minor fixes, I got the program to run and almost all tests to pass.
Upgrade Qt 5.12 to Qt 6.3.2
I used the online installer and I found some strange issues when trying to run the program.
Using Qt 5.15 - a new crash
After installing Qt 5.15, I got a software crash when running the application.