How to delete a widget from a stacked widget in Qt

Posted by Solitaire on Stack Overflow See other posts from Stack Overflow or by Solitaire
Published on 2010-03-24T09:50:32Z Indexed on 2010/03/29 15:13 UTC
Read the original article Hit count: 576

Filed under:
|
|
|
|

Hi, I am using QStackedWidget to switch between the views, I will be able to traverse between the views, I am facing problem in some scenario, where I do not require the widgets, I want to remove them completely.. QStackedWidget provides the functionality to remove widgets, still the ownership of the widget will be there, I mean widget will be hidden.

I dont want this to be happen, when I call remove widget the widget should be deleted. how to handle this?

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4