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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -