This is an artifact of the Qt Components MeeGo style still calling into libmeegotouch which has an action based API, the Action might be removed in the future. If you go for a straight QML approach I think Item based toolbars and menus are nicer to work with.
Regards, Tomas On 12/07/2010 11:03 AM, ext pekka.e.jok...@nokia.com wrote: > Thanks Joona, > > the initial push came from qt-components/Meego: > > http://qt.gitorious.org/qt-components/qt-components/trees/master/src/MeeGo > > which has own Action.qml implementation for the UI. Just wondering, does > the Symbian side need one as well? > > The action could live in the declaration pretty nicely: > > Item { > > id: parent > > Action { > > id: actionOwnedByParent > > text: “jeah!” > > icon: “icon1.jpg” > > onTriggered: { > > … > > } > > } > > Menu … > > Button … > > Toolbar… > > } > > Although, I don’t know if we want to promote action based menus/toolbars > anymore. > > -P > > *From:*Petrell Joona.T (Nokia-MS/Brisbane) > *Sent:* 06.12.2010 09:58 > *To:* Jokela Pekka.E (Nokia-MS/Tampere); qt-qml@trolltech.com > *Subject:* RE: QML Action element > > 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-boun...@trolltech.com > [mailto:qt-qml-boun...@trolltech.com] *On Behalf Of *Jokela Pekka.E > (Nokia-MS/Tampere) > *Sent:* Thursday, December 02, 2010 7:21 PM > *To:* qt-qml@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 > > > > _______________________________________________ > Qt-qml mailing list > Qt-qml@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-qml _______________________________________________ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml