[Qt-interest] MainWindow menu hardly responding to mouse events
Matthias Pospiech
matthias.pospiech at gmx.de
Tue Aug 17 18:00:40 CEST 2010
Matthias Pospiech schrieb:
> I have a small project, which has a MainWindow including a mdiArea and 5
> actions.
> There are three top level menu entries. The MainWindow is doing nothing
> activly after startup. It only included signal-slots to the actions in
> the menu.
>
> However in both debug and release mode I can hardly click on the menu. I
> checked the qt libs (they are the ones from the sdk with mingw) and
> recompiled new.
> Now I have no further idea what to check.
>
Finally I found the problem,
I have a class with inherits from QWidget but is not connected to any
layout.
This is constructed with the pointer from MainWindow and afterwards not
touched anymore.
If I move the QWidget to QObject (and derive from QObject) the lagging
disappears.
The question is still why this is happening.
Matthias
More information about the Qt-interest-old
mailing list