On Mon, Dec 6, 2010 at 9:57 AM,  <joona.t.petr...@nokia.com> 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

Reply via email to