Well you can just use a Widget stack. Taht way you also preserve the scroll 
position.
But I agree, it should give you the pointer to replaced widget.





________________________________
From: Phil Hannent <[email protected]>
To: [email protected]
Sent: Thu, October 8, 2009 10:49:07 AM
Subject: [Qt4-preview-feedback] void QScrollArea::setWidget ( QWidget * widget )

Hello,

A colleague and I have a quick question with regard to the setWidget
function on the QScrollArea.

http://doc.trolltech.com/4.6-snapshot/qscrollarea.html#setWidget

Why does it delete the widget that is passed to it when you set another
widget?

We are toggling between a number of widgets and have to recreate them
each time we call this function.  Some of our QWidget take a number of
seconds to create which is a pain to have to do between toggles.

Regards
Phil 


      
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to