[Development] Question about Qt's future

André Somers andre at familiesomers.nl
Tue Apr 22 13:06:11 CEST 2014


Olivier Goffart schreef op 22-4-2014 13:01:
> On Tuesday 22 April 2014 12:20:58 Oswald Buddenhagen wrote:
>> On Mon, Apr 21, 2014 at 02:52:25PM +0200, Roland Winklmeier wrote:
>>> If I want to access this methods from QML I would have to derive them
>>> from QObject and register it in the QML context.
>> try playing with Q_GADGET instead of QObject/Q_OBJECT - that's much less
>> heavyweight.
>> if it doesn't work with qml/quick in cases where there is no good reason
>> why it shouldn't, i'm sure the qml maintainers would welcome
>> contributions ...
> Q_GADGET unfortunately only support enums. It does not support invokable or
> properties.
>
> (it actually could if we made use of the qt_static_metacall introduced in Qt
> 4.8)
>
Futhermore, it is private API. As still is basically all of Quick itself 
(from a C++ perspective), making extending Quick a bit of a hazardous 
experience...

André




More information about the Development mailing list