[Qt-interest] [Qt-qml] QML Action element
Mihail Naydenov
mlists at ymail.com
Sat Dec 4 13:59:38 CET 2010
----- Original Message ----
> From: Stephen Kelly <steveire at gmail.com>
> To: qt-interest at trolltech.com
> Sent: Sat, December 4, 2010 2:43:57 PM
> Subject: Re: [Qt-interest] [Qt-qml] QML Action element
>
> Pekka.E.Jokela at nokia.com wrote:
>
> > 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
>
> I don't remember any such rumours. Do you mean this?
>
> http://labs.qt.nokia.com/2010/07/20/designing-code-for-qml-uis/
>
> I think action handling in the real world has far more complex needs than
> are provided for simply by QAction being a QObject.
>
> We have a bunch of files like this:
>
>
http://websvn.kde.org/trunk/KDE/kdepim/mobile/mail/KMailActions.qml?view=markup
>
> And we manage the state of them (disabled, hidden) largely from C++ as a
> result of changes in application state (something is selected or not).
>
> I don't know what would make it easier though. What would a QML Action built
> in type do?
There is already one:
QML Basic Type: action
The action type has all the properties of QAction. The properties are:
* slot action.trigger - invoke the action
* bool action.enabled - true if the action is enabled
* string action.text - the text associated with the action
>
> Steve.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list