C
C
cursed2011-03-03 21:50:38
Qt
cursed, 2011-03-03 21:50:38

Qt tray icon menu?

I am writing a Qt application using the system tray. The tray icon on right click shows the menu. The problem is that if you remove the focus, the menu does not disappear. It is necessary to click on the menu (at least on the separator). Only then will the menu disappear when the focus is changed.
Please tell me how to solve this problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Kovalevsky, 2012-08-31
@cursed

At the moment the bug is not relevant. In Qt versions 4.5-5, the flight is normal.

I
ixSci, 2011-03-05
@ixSci

This is a bug in Qt. bugreports.qt.nokia.com/browse/QTBUG-14807
I did this: This code is in the signal handler void QSystemTrayIcon::activated ( QSystemTrayIcon::ActivationReason Keyason )
if(Reason == QSystemTrayIcon::Context)
{
m_pContextMenu->activateWindow();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question