nish
nish

Reputation: 1058

qsystemtrayicon opens many windows , need one

When clicked multiple times, a qsystemtrayicon should open only once. How is it possible?

Upvotes: 0

Views: 185

Answers (1)

Shinnok
Shinnok

Reputation: 6389

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.

Upvotes: 2

Related Questions