Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
Description
When this task is finished I will be able to:
- Annotate a C# event as a Qt signal using an appropriate interop attribute;
- Choose one of the following options:
- Provide no further metadata;
- The event will be mapped to a signal with the same name and an empty parameter list;
- No conversion between event and signal is required.
- Provide a list of signal parameter types;
- The event properties will be mapped to signal parameters matching the types in the list;
- An implicit type conversion between event properties and matching signal parameters will be attempted.
- Define a custom signal converter class;
- Override the event argument conversion method;
- Provide a value for each signal parameter, based on the value of the corresponding event property;
- Reference the custom signal converter class in the event annotation;
- Provide no further metadata;
- When the event is notified, the generated native code will call the associated converter to retrieve the value of each signal parameter;
- The signal associated to the event is emitted.
Attachments
Issue Links
- is required for
-
QTBUG-134780 As a dev, I need a simple way to add a Qt Quick UI to my C# code
-
- In Progress
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-134963 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
637933,7 | Add attributes for meta-object interop | dev | qt-labs/qtdotnet | Status: NEW | 0 | 0 |
639667,2 | Add C++ wrapper for Signal class (QDotNetSignal) | dev | qt-labs/qtdotnet | Status: NEW | 0 | 0 |