[Qt-interest] Repaint Problem/BUG with QLineEdit in QGraphicsScene

Mihail Naydenov mlists at ymail.com
Fri Mar 20 13:19:26 CET 2009


Hi,

Right now if you resize the main window while QLineEdit (placed in QGraphicsScene) has focus, the widget will stop handling repaint upon user interaction. If the widget is a group, and QLineEdit  is part of it, all widgets within the group will stop update themselfs. They do handle the events however, but one must resize the win again to force a redraw.
A "workaround" is to remove the focus (tab to other widget, click ouside etc) from QLineEdit before editing the window frame.

Note that the problem is also visible in the Embedded Dialogs Demonstration (where it is the editable combobox, not lineedit, that is causing the problem) -  just start typing in Select font, then, without pointing to any other dialog, move the mouse to the win frame and resize it. Now if you try to continue typing, there will be no feedback, if try to carefully select the font selector combobox again and try to type again - it will still have no effect! You have to select the font from the dropdown menu or select some other control in order to restore the updates.

Is it a bug, and is there a way to fix/workaround this?
Thank you
MihailNaydenov



      




More information about the Qt-interest-old mailing list