Hi Igor, 

 

Your problem makes sense.  Hiding and showing widgets triggers a layout
recalculation, and the layout uses setGeometry to position the widgets.   It
sounds unusual to change widget visibility in a setGeometry override.   I
suggest to use a flag to prevent the recursion yourself.  

 

Regards, 

 

Tony

 

 

Sent: Tuesday, 5 August 2014 4:14 PM



Hi.

 

I found that if in setGeometry() method call hide() or show() on widgets
inside layout then this leads to recursion of layout.

 

What do you think on this problem? May be it is good suggestion to Qt
developers to remove this recursion, because of it is sometimes useful to
hide some widgets in layout for this or that reason?!

 

Thank you.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to