MaintenanceTool
-
I want to update the tools I am using, presently I am building with 5.15.2, I want to update the tools to 5.15.16 as I want to use the Anchor Layout, the example I've seen online is using 5.15.16, however when I launch the MaintenanceTool, I see lots of Qt 6.. versions, but only Qt 5.15.2 and before that, nothing after the Qt 5.15.2.
What do I need to do ?
I'm working on iMAC:
macOS Monterey Version 12.7.2 iMac (Retina 5K, 27-inch, Late 2015) Processor 4 GHz Quad-Core Intel Core i7 Memory 16 GB 1867 MHz DDR3 Graphics AMD Radeon R9 M395X 4 GB
About Qt Maintenance Tool:
Based on Qt 5.15.11 Built on Aug 23 2023 From revision 0e9da21a36ff1d2ae9830654fc59eb6b872242
Is it a big jump to go to Qt 6.6.1. ?
-
@SPlatten said in MaintenanceTool:
What do I need to do ?
Since open source people are supposed to switch to Qt6 Qt-company does not provide pre compiled Qt5 versions past 5.15.2
Therefore you have 2 options:
- Get a comercial licence and use the maintenancetool to get the latest 5.15.16 precompiled to download
- Build Qt yourself. But only the slightly out of date variant of Qt5.15.12 since the open source release is delayed by at least a year
-
@J-Hilk , are they're any preprocessors I can use to conditionally include certain headers when building for 5.15.2 or 6.6.1 ?
For example just building it now and with 6.6.1 it complains about:
#include <QtWidgets/QAction>
I would prefer to wrap this line so it is used when building for 5.15.2 but something else when 6.6.1:
#include <QAction>
Edit:
#if QT_VERSION == QT_VERSION_CHECK(5, 15, 2) #include <QtWidgets/QAction> #elif QT_VERSION == QT_VERSION_CHECK(6, 6, 1) #include <QAction> #endif