QT how to detect the systray area for creating systary pop up windows

微笑、不失礼 提交于 2020-01-01 18:02:58

问题


i need to create/design QT systray popup windows , i was thinking about creating custom windows that derived from QDialog , so it could look better then the ordinary "Information,Warning,Critical styles"
my question is how can i detect the position of the desktop systray ,so how could give the popup windows
the look and feel of a systray popup


回答1:


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

See the documentation for more information.



来源:https://stackoverflow.com/questions/2848416/qt-how-to-detect-the-systray-area-for-creating-systary-pop-up-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!