Skip to content

[Announcement] Qt6 Support by removing deprecated functions #8232

Open
@basyskom-dege

Description

@basyskom-dege

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions