Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.0.0 Beta1, 6.0.0 Beta2, 6.8.0 Beta3
-
None
-
d79043880 (dev), 2d44996c2 (6.8)
Description
When exposing a class, having a slot with a parameter, to QML using QML_ELEMENT, the parameter-type is exposed to QML even when the slot is never meant to be used by QML.
class Example { QML_ELEMENT // ... public Q_SLOTS: void mySlot(ParameterClass param); }
This behavior is new in Qt 6.8.
Is there a way to suppress this behavior, so that the slot and parameter type do not appear in the *.qmltypes file generated by qmltyperegistrar?