QT how to define systray scope to create systary popups

I need to create / create QT systray popups, I was thinking of creating custom windows that are derived from QDialog, so it may look better than the usual “informational, warning, critical styles”
my question is how can I determine the position of the desktop systray since one would get pop-ups the
appearance of a systray pop-up

+2
source share
1 answer

You can use the rectangle given QSystemTrayIcon::geometry()to know the exact position of the desktop systray. The geometry method gives the position in the screen coordinate of the icon in the system tray.

See the documentation for more information.

+6
source

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


All Articles