-
Notifications
You must be signed in to change notification settings - Fork 80
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
QFlags support #1123
Comments
I played around with this and it looks rather easy. QFlags is a class with one int member. On the Rust side we only need
plus the usual ExternType boilerplate, and then it just works |
@nicolasfella thank you for investigating. Note that this would be slightly different from how it works in Qt, where QFlags is a generic, which it wouldn't be in Rust. |
I made a working prototype of QFlags as a generic. It mimics the interface of Qt's QFlags, e.g. |
@jnbooth Thank you, this looks very promising! |
Originally posted by @ahayzen-kdab in #555 (comment)
The text was updated successfully, but these errors were encountered: