[Qt-creator] bug with QDockWidget based class

Alexander Rössler alexanderroessler at aon.at
Tue Mar 17 19:40:54 CET 2009


Thorbjørn Lindeijer wrote:
>
> 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

Thanks, it works fine!

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090317/5aaa01a6/attachment.html 


More information about the Qt-creator-old mailing list