OpenAPITools / OpenAPITools/openapi-generator
[Announcement] Qt6 Support by removing deprecated functions
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the cpp-qt5-generator implementation and its Qt-dependent functions. Review the proposed preprocessor distinction between Qt5 and Qt6, then determine whether the generator should be renamed or a separate Qt6 generator added. Done means the generator supports the intended Qt versions without deprecated functions and the naming decision is reflected consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100