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

use dynamic_cast instead of qobject_cast #48122

Merged
merged 1 commit into from
Feb 14, 2025
Merged

Conversation

jkarneges
Copy link
Member

Found one more QObject capability we were dependent on: qobject_cast.

Per the Qt docs:

The qobject_cast() function behaves similarly to the standard C++ dynamic_cast(), with the advantages that it doesn't require RTTI support and it works across dynamic library boundaries.

We aren't working in an environment where we need this flexibility.

@jkarneges jkarneges merged commit 76a1f77 into main Feb 14, 2025
19 checks passed
@jkarneges jkarneges deleted the jkarneges/remove-qobject-cast branch February 14, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants