Quote Originally Posted by wysota View Post
Why do you want to calculate the layout when the widget is hidden? Maybe you could recalculate the layout when showEvent() happens to avoid the problem. Better yet implement your own layout as a proper QLayout subclass.
Hello. We are not creating a new project while porting it to Qt.
because of historical reason the old layout we cannot remove in the near future.

may i know whether it is not recommanded to trigger a resizeevent before the widget visible?