[Qt-creator] bug with QDockWidget based class

Thorbjørn Lindeijer thorbjorn.lindeijer at nokia.com
Tue Mar 17 13:05:34 CET 2009


ext Alexander Rössler wrote:
> Is there really no solution?
> Please watch this video to get an idea about what I mean: 
> http://www.youtube.com/watch?v=qG7gvG1dTzM

I've looked into this issue and found out it's due to the changeEvent 
override that is used to make the widget dynamically adapt to a language 
change. This override fails to call the parent implementation, on which 
a QDockWidget apparently relies for an event related to a changing title.

You can fix it by either adding the following line to the generated 
changeEvent implementation or removing the override entirely if you 
don't need it.

void MyDockWidget::changeEvent(QEvent *e)
{
     QDockWidget::changeEvent(e);
...

We'll fix this problem in the wizard. Thanks for the persistent bugging 
about it!

Regards,
Bjørn

-- 
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Software




More information about the Qt-creator-old mailing list