Show ubuntu (linux) notifications with Qt

I worked with the Phonon multimedia infrastructure in Qt, and it displays a message (for example, a volume notification message that appears when the volume changes), since my audio device is not fully configured, is it possible to start my own notification from Qt?

See image above.

The notification message

Many thanks.

+5
source share
2 answers

AFAIK using libnotify is the way to go if you don't want to use this method, which I found after doing some network searching:

system("notify-send 'The Message Title' 'Your Message Text' '-t' 5000");

the -t option is for notification timeout.

you can read the "Report" message:

Ubuntu user guide: using notify-send

, Qt KDE, GNOME

, :), ; .

+4

Ubuntu, (AFAIK), , Qt. Ubuntu libnotify . API . .

+2

All Articles