[Qt-qml] QML Action element
warwick.allison at nokia.com
warwick.allison at nokia.com
Wed Dec 8 01:36:42 CET 2010
Certainly a ui-style-specific module could make an "Action" element like this (just as qt-components has apparently), if it made sense for the types of interactions in that style. No extra functionality is needed in QML to enable such an element.
If we are to have truly revolutionary user experiences, we need to get out of the habit of first building a big dull traditional framework and then hoping that something pleasant can be shoehorned out of the constraints implied by that framework. This is the Big Lesson of QML over Qt.
--
Warwick
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/20101208/7a04149c/attachment.html
More information about the Qt-qml
mailing list