Registered Member
|
Hi, I'm doing a QML plasmoid that should detect that the user is idle. I see that the "Tier 1" of KDE Frameworks has a KIdleTime class with methods to read the user idle time, for example:
Can I use the KIdleTime class from a QML plasmoid? I have tried things like:
but they don't work. What exactly do I have to write? If the KIdleTime class is not reachable from a QML plasmoid, is there any other way to read the user idle time? Thank you
Last edited by kdea on Sun Nov 29, 2015 1:54 pm, edited 2 times in total.
|
Registered Member
|
Solved: You can use a plasma datasource to get the idle time:
I have used it to create my "Take a break" plasmoid: http://kde-apps.org/content/show.php/Ta ... ent=174127 Why nobody suggested me to use the datasource? Perhaps I made the question in a wrong forum? Is there any forum specific for plasmoid development? Thank you |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]