[Announcement] Qt6 Support by removing deprecated functions
See original GitHub issueSince Qt6 was released recently, it would be a good to support that. The existing Qt5 generator uses some deprecated functions that are not supported in Qt6. I replaced them with the equivalent Qt6 functions. The new functions work with Qt5 aswell, except of the Qt::SectionSkipEmpty
Flag ( equal to 0x01) that was in the QString
namespace in Qt5. I inserted a preprocessor variable to support both, Qt5 and Qt6:
#if QT_VERSION >= 0x060000
#define SKIP_EMPTY_PARTS Qt::SkipEmptyParts
#else
#define SKIP_EMPTY_PARTS QString::SkipEmptyParts
#endif
I created a PR with those changes. Since the generator is called cpp-qt5-generator
it would make sense to add a new Qt6 generator or rename it.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Qt Platform 6.0 Released | Embedded Systems Development ...
Enabling deprecation warnings there and cleaning those up will bring you a long way towards making your codebase compatible with Qt 6. Some...
Read more >release notes for Qt 6.2 - Qt Project Git Repository Browser
exit() is now a slot, like quit(). this change, it has been un-deprecated. shall in due course be deprecated in favor of the...
Read more >Deprecation of Qbs - Qt
We have decided to deprecate Qbs and redirect our resources to increase support for CMake. Qbs will remain supported until the end of...
Read more >Qt Extras Modules in Qt 6
One of those changes was to remove the platform-specific Extras modules, ... The functionality was deprecated in the relevant platform.
Read more >Qt 6.2 vs. Qt 5.15 – The Feature Parity Comparison
Qt recently compared the Long Term Support Releases Qt 5.15 and Qt 6.2 of ... As we know the QtQuick controls 1 are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK. I will try to come up with a PR over the weekend.
We might close this issue since #8234 is fixed.