[Qt-interest] Mouse movement required to make things happen?

Bob Hood bhood2 at comcast.net
Tue Feb 23 20:33:58 CET 2010


Eric Clark wrote:
> I am experiencing very similar behavior. We have a context menu that appears when you right click on an item in a QTreeView. When the user right-clicks, a completely transparent menu appears where you can just barely see the beveled edges only. If the user moves the mouse in any direction, the popup menu will completely appear.
>
> In our application, we have a QGLWidget (or 2 or 3 or more) as the central widget in our main window. We have the ability to turn off the rendering of the QGLWidgets by a click of a tool button. If we turn off the rendering, the anomaly does not happen, it works just as usual. When the user right-clicks the item in the tree view, the popup (context) menu appears just fine without any need for extra mouse movement.
>
> I wonder Bob, do you have any QGLWidgets in your application?
>   

Yes, indeed, we do, in a similar configuration.  And I am also seeing
that issue with context menus drawing their outlines but not their
contents until you move the mouse.  Glad it's not just us.  :)

So, this sounds like the QGLWidgets may be obstructing the event loop in
some way?




More information about the Qt-interest-old mailing list