On Tuesday, 2012-10-30, Sebastian Kügler wrote: > On Monday, October 29, 2012 13:46:18 Marco Martin wrote: > > On Monday 29 October 2012, Daker Fernandes Pinheiro wrote: > > > > > Daker Fernandes Pinheiro > > > > > http://codecereal.blogspot.com > > > > > > > > isn't QAction already registered as "action" primitive type? > > > > > > At least not on QtQuick 1.1 > > > > not sure if is really qaction or some wrapper class, but > > http://qt-project.org/doc/qt-4.8/qml-action.html > > I don't know either. Using QAction as QtObject in QML works. On the other > hand, QAction doesn't have trigger() as Q_INVOKABLE, yet it is one for the > runtime (one can just call trigger() on a QAction passed into the runtime.
Sorry for jumping into this thread, but trigger() is a slot (public even), so it should be invokable even without Q_INVOKABLE. In any case, I am curious what the use case of triggering a UI action is? I mean any imperative portion of the QML could just invoke the script function the action's onTriggered is calling, no? Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel