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

CGAL::CGAL_Basic_viewer enforces the definition of the preprocessor macro QT_NO_KEYWORDS #8574

Closed
lrineau opened this issue Oct 25, 2024 · 3 comments · Fixed by #8581
Closed

Comments

@lrineau
Copy link
Member

lrineau commented Oct 25, 2024

That is because CGAL::CGAL_Basic_viewer enforces the definition of the preprocessor macro QT_NO_KEYWORDS.

That means you need to replace:

  • slots by Q_SLOTS
  • signals by QSIGNALS,
  • emit by Q_EMIT, and
  • foreach by Q_FOREACH.

... I wonder if that should be considered as a bug for CGAL. We should not enforce our choices to CGAL users.

Originally posted by @lrineau in #8572 (comment)

@lrineau lrineau changed the title CGAL::CGAL_Basic_viewer enforces the definition of the preprocessor macro [QT_NO_KEYWORDS](https://doc.qt.io/qt-6/qtglobal.html#QT_NO_KEYWORDS). CGAL::CGAL_Basic_viewer enforces the definition of the preprocessor macro QT_NO_KEYWORDS Oct 25, 2024
@lrineau lrineau added this to the 6.0.2 milestone Oct 25, 2024
@lrineau
Copy link
Member Author

lrineau commented Oct 25, 2024

I think we define QT_NO_KEYWORDS for two reasons:

@gdamiand
Copy link
Member

The conflict with TBB is blocking for us.

@lrineau
Copy link
Member Author

lrineau commented Oct 25, 2024

The conflict with TBB is blocking for us.

I agree in CGAL Qt applications, we need to define QT_NO_KEYWORDS. But maybe not force users of CGAL::CGAL_Basic_viewer to modify their source code because we enforce QT_NO_KEYWORDS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants