PDA

View Full Version : QLayout on hidden window



benacler
2nd September 2008, 18:04
Hi guys,

I'm facing a weird problem I cannot resolve, hope someone here faced the same and is able to give me some kind of advice...

I've a QDialog allocated on the heap, I use it as a sort of progress dialog (don't tell me to use QProgressDialog ;) ), the dialog is showed using show() and setModal(true) and then hidden using hide() and setModal(false) to restore the input back...

The weird thing is that when I change the content of the dialog (like the text) and the dialog needs a size change, it first shows with the previous size , and the flickers with the required resize.... I've tried to call update() , resizeGeometry() or setting the layout constrains before show() with no success....

any hint ?


Thanks a lot !