Linux KDE system notification c++/Qt -


i'm developing app (plasmoid) kde plasma 5 c++ , qt. simple way emit system notification (notification in corner of screen notification new email or disconnection network)? can terminal calling 'kdialog ...' don't know how c++ code , yeah don't want 'system(kdialog ...)'. thanks.

i found solution:

qsystemtrayicon* ic = new qsystemtrayicon(this); ic->setvisible(true); ic->showmessage(tr("notify"), tr("text"), qsystemtrayicon::information, 1000); qapp->processevents(); 

Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -