How can I make a tray icon in Linux using C ++?

On Windows I can use Shell_NotifyIcon(). What is the Linux equivalent of this feature?

Difference in GNOME (gtk) and KDE (qt)? Unable to find textbooks on the Internet.

+3
source share
3 answers

Yes, it depends on the desktop environment you are using.

In Qt (KDE), you can do this in a cross-platform way using QSystemTrayIcon.

There is even an example application in Qt .

In GTK, you do this with GtkStatusIcon. In this blog post .

+6
source

systray XEmbed. Qt GTK . . Qt, , Windows, .

+3

Gnome, gtkmm toolkit ++

: , . , . Reed.

0

Source: https://habr.com/ru/post/1713262/


All Articles