Re: [Qt-qml] QML Action element
2010/12/8 : >> I hope "declarative" doesn't end up meaning "screw abstraction, we'll >> make everything as painfully concrete as possible" ;-). >> >> Actions are a nice way to declare a bunch of things that the user can >> do, which can later be moved around by the view developer to different >> presentation (toolbar / app menu / context menu / shortcut / tv remote >> control / whatever). Compared to just exposing a method, Action can >> have icon, (translated) text, status tip, etc... > > And yet they bind the notions of "UIs are a bunch of commands" and "commands > have static icons and test labels" into the design language of the user > experience, while "abstracting" something that is trivial. > > Anyone trying to write applications by devising a traditional > toolbar-menu-buttons UI and then expecting some magic "style" to be applied > to their abstraction in order to make a pleasant UI is riding on the wrong > bus. > > Start with the interaction design and the abstract logic engine, then bring > the two together. Do not just add UI abstractions on the engine and expect > success - that only "works" for SAP and Lotus Notes, and well, it doesn't > actually work at all, does it? Mini-{rant,remark}: If you argue about abstraction, one could say that MouseArea does not have to have the "clicked" signal, as "pressed" and "released" already provide everything one needs, and "clicking" is something that comes from a traditional mouse-centered UI, and already encourages designers to think in terms of "clicks". (Why isn't it called TouchArea or InteractiveArea? Where are the gestures? onPinch?) Thomas ___ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml
Re: [Qt-qml] QML Action element
> I hope "declarative" doesn't end up meaning "screw abstraction, we'll > make everything as painfully concrete as possible" ;-). > > Actions are a nice way to declare a bunch of things that the user can > do, which can later be moved around by the view developer to different > presentation (toolbar / app menu / context menu / shortcut / tv remote > control / whatever). Compared to just exposing a method, Action can > have icon, (translated) text, status tip, etc... And yet they bind the notions of "UIs are a bunch of commands" and "commands have static icons and test labels" into the design language of the user experience, while "abstracting" something that is trivial. Anyone trying to write applications by devising a traditional toolbar-menu-buttons UI and then expecting some magic "style" to be applied to their abstraction in order to make a pleasant UI is riding on the wrong bus. Start with the interaction design and the abstract logic engine, then bring the two together. Do not just add UI abstractions on the engine and expect success - that only "works" for SAP and Lotus Notes, and well, it doesn't actually work at all, does it? -- Warwick ___ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml
Re: [Qt-qml] QML Action element
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@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
Re: [Qt-qml] QML Action element
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
Re: [Qt-qml] QML Action element
On Mon, Dec 6, 2010 at 9:57 AM, wrote: > 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. I hope "declarative" doesn't end up meaning "screw abstraction, we'll make everything as painfully concrete as possible" ;-). Actions are a nice way to declare a bunch of things that the user can do, which can later be moved around by the view developer to different presentation (toolbar / app menu / context menu / shortcut / tv remote control / whatever). Compared to just exposing a method, Action can have icon, (translated) text, status tip, etc... -- Ville M. Vainio @@ Forum Nokia ___ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml
Re: [Qt-qml] QML Action element
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
Re: [Qt-qml] 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