You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- A shim trait is used to check whether the user declared a constructor
- This is implemented by the bridge if you add the constructor trait in bridge
- This will then allow you to implemented constructor for your type
- This prevents constructors not being used silently
/// Shim trait indicating whether the user has declared a constructor in the bridge or not
220
+
pubtraitConstructorDeclared{}
221
+
219
222
/// This trait can be implemented on any [CxxQtType] to define a
220
223
/// custom constructor in C++ for the QObject.
221
224
///
@@ -307,7 +310,7 @@ pub trait Threading: Sized {
307
310
///
308
311
/// If a QObject implements the `Initialize` trait, and the inner Rust struct is [Default]-constructible it will automatically implement `cxx_qt::Constructor<()>`.
309
312
/// Additionally, implementing `impl cxx_qt::Initialize` will act as shorthand for `cxx_qt::Constructor<()>`.
0 commit comments