Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for projects using QT_NO_KEYWORDS #18

Closed
pedrolcl opened this issue Dec 10, 2023 · 0 comments
Closed

Support for projects using QT_NO_KEYWORDS #18

pedrolcl opened this issue Dec 10, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@pedrolcl
Copy link
Owner

https://doc.qt.io/qt-6/signalsandslots.html#signals-and-slots-in-qt-based-libraries

The public API of Qt-based libraries should use the macros Q_SIGNALS and Q_SLOTS instead of signals and slots. Otherwise it is hard to use such a library in a project that defines QT_NO_KEYWORDS.

To enforce this restriction, the library creator may set the preprocessor define QT_NO_SIGNALS_SLOTS_KEYWORDS when building the library.

@pedrolcl pedrolcl self-assigned this Dec 10, 2023
@pedrolcl pedrolcl added the enhancement New feature or request label Dec 10, 2023
@pedrolcl pedrolcl added this to the v2.9 milestone Dec 10, 2023
pedrolcl added a commit that referenced this issue Dec 16, 2023
replaced 'signals' and 'slots' macros by Q_SIGNALS and Q_SLOTS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

1 participant