question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Announcement] Qt6 Support by removing deprecated functions

See original GitHub issue

Since 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:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wing328commented, Dec 18, 2020

OK. I will try to come up with a PR over the weekend.

0reactions
MartinDelillecommented, Feb 27, 2021

We might close this issue since #8234 is fixed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found