[Qt-qml] QML Action element

Pekka.E.Jokela at nokia.com Pekka.E.Jokela at nokia.com
Tue Dec 7 10:03:00 CET 2010


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 at 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-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/20101207/33233134/attachment.html 


More information about the Qt-qml mailing list