[Qt-qml] runtime object and c++

michael.brasser at nokia.com michael.brasser at nokia.com
Fri May 14 00:22:06 CEST 2010


On 13/05/2010, at 9:55 PM, ext Helio Chissini de Castro wrote:
> As the calculator sample shows ( in demos/declarative ), to deal with rotation 
> state it uses the runtime object.
> 
> This is valid when we are running from qml runtime launcher, but when we are 
> using a C++ app with embedded qml, the runtime object not exists anymore.
> 
> What is the proper way to deal with rotation in such case ?

One option is to use QOrientationSensor from Qt Mobility (the Qt Mobility release includes an example showing usage from QML).

Regards,
Michael



More information about the Qt-qml mailing list