Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序QtGui.QSystemTrayIcon和一个 Qmenu。有没有办法禁用和启用它。
QtGui.QSystemTrayIcon
我希望在我的应用程序启动时禁用它,以便用户无法访问菜单项。
有.show()和.hide()方法和一个.visible允许显示或隐藏QSystemTrayIcon. 那是你要找的吗?
.show()
.hide()
.visible
QSystemTrayIcon