开发者

qsystemtrayicon opens many windows , need one

开发者 https://www.devze.com 2023-02-18 18:14 出处:网络
When clicked multiple times, a qsyste开发者_StackOverflow中文版mtrayicon should open only once. How is it possible?That\'s up to you handle how many instances of a Window are fired up. QSystemTrayIcon

When clicked multiple times, a qsyste开发者_StackOverflow中文版mtrayicon should open only once. How is it possible?


That's up to you handle how many instances of a Window are fired up. QSystemTrayIcon has nothing to do with it. You most probably are creating a widget each time the system tray icon is clicked, instead of using just one and calling QWidget::show() and QWidget::hide() respectively. That's the best shot i can take at your issue, given the thin description.

0

精彩评论

暂无评论...
验证码 换一张
取 消