[Qt-qml] QML Action element

joona.t.petrell at nokia.com joona.t.petrell at nokia.com
Mon Dec 6 08:57:45 CET 2010


Hi,

QtDeclarative library registers QAction so that you can access QAction-based properties from QML. For example WebView element has back, forward, stop, reload actions for controlling the web page being shown. There is no Action element though for creating new actions from QML and I am not aware of any plans of chaning this, i.e. you cannot really write "property variant myAction: Action {}". What is the use case you want to solve with the Action element? QAction has roots in QWidget/QGraphicsWidget world, there may be another solution to your problem that fits better with the QML principles and declarative way of building user interfaces.

QML Basic Type action
http://doc.qt.nokia.com/latest/qml-action.html

Cheers,

Joona

From: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of Jokela Pekka.E (Nokia-MS/Tampere)
Sent: Thursday, December 02, 2010 7:21 PM
To: qt-qml at trolltech.com
Subject: [Qt-qml] QML Action element

Hi,
I remember some rumors that QtQuick would implement QML Action element (equals QAction) as built in type. What is the current status?

Thanks,
-Pekka


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101206/ec19fe07/attachment.html 


More information about the Qt-qml mailing list