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

php - How to add and update images or image url in Volusion using Volusion API -

c# SetCompatibleTextRenderingDefault must be called before the first -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -