QActions in QML

Dmitry A. Ashkadov dmitry.ashkadov at rosalab.ru
Fri Nov 23 07:37:01 UTC 2012


Hello, friend!

Thank you for your explanations! But I don't really need trigger actions, I need create KAction and get notifications when it's triggered.
So, if I undrstand right, I can create KAction only from C++ and then use onTriggered: {}    

----- Исходное сообщение -----
От: "Sebastian Kügler" <sebas at kde.org>
Кому: kde-core-devel at kde.org, plasma-devel at kde.org
Отправленные: Вторник, 30 Октябрь 2012 г 20:47:30
Тема: Re: QActions in QML

On Sunday, October 28, 2012 22:33:55 Daker Fernandes Pinheiro wrote:
> This just worked:
> http://paste.kde.org/584660/
> Where QAction is
> http://paste.kde.org/584672/

I saw that, but you're cheating :)

Creating a new Type that wraps QAction is always possible, but it's not a good 
solution.

Anyway, problem was somewhere in my code, it works with 
QDeclarativeListProperty<QAction> :)

Thanks anyway!
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9


More information about the Plasma-devel mailing list