[Development] Question about Qt's future

Olivier Goffart olivier at woboq.com
Tue Apr 22 13:01:54 CEST 2014


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)

-- 
Olivier 

Woboq - Qt services and support - http://woboq.com - http://code.woboq.org



More information about the Development mailing list