diff --git a/lcl/interfaces/qt/qtwidgets.pas b/lcl/interfaces/qt/qtwidgets.pas index 9389ed4b7b..86c2a37ae7 100644 --- a/lcl/interfaces/qt/qtwidgets.pas +++ b/lcl/interfaces/qt/qtwidgets.pas @@ -3020,8 +3020,9 @@ begin if not Assigned(LCLObject) then exit; // do not loop with LCL but do not apply it to TQtMainWindow ! - if not (ClassType = TQtMainWindow) and InUpdate then - exit; + if not (csDesigning in LCLObject.ComponentState) then + if not (ClassType = TQtMainWindow) and InUpdate then + exit; if (NewSize.cx <> LCLObject.Width) or (NewSize.cy <> LCLObject.Height) or (LCLObject.ClientRectNeedsInterfaceUpdate) then