-
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
Defining nested objects with the new API #299
Comments
Do we even need owned by Rust initially ? Or would supporting Can owned by Rust properties get away with just being UniquePtr/SharedPtr and then if you want to reach those in QML add some getters in the C++ to convert to a raw pointer? |
I think that would be enough for now. |
Defining nested objects with the new API probably two types to consider
Could have a separate type for owned by C++ ? So that Drop doesn't deconstruct it.
Can raw pointers, shared pointers, or unique pointers be used for any of these?
How do we know it's a QObject pointer and not a CXX type ?
Should we have QPointer and QOwnedPointer as the "magic" types ?
What types does QML expect/accept when it's a pointer?
Can we return a nested object from an invokable ? What does this mean ? Who has ownership ?
Ensure that one object would be able to call into another object by maybe borrowing (for the locks as rust/rust_mut don't lock? maybe they should now that we use a recursive_mutex?)
The text was updated successfully, but these errors were encountered: