PDA

View Full Version : QMenu is not getting shown properly until any event occurs.



sanket.mehta
22nd February 2011, 13:41
Hi,

I have a problem with QMenu (customContextMenu which is visible when user click the right button of mouse).

In my code I execu te Qmenu with menu->exec(QCursor::pos()) method. but sometimes only outliine of the menu is visible until I press any button or move my mouse.

Is any one provide me the solution for this?

I am using Qt 4.6.2.

Thanks in Advance,
Sanket

franz
22nd February 2011, 16:39
http://labs.qt.nokia.com/2010/02/23/unpredictable-exec/