qt layout销毁时会销毁其中的组件吗
展开全部
不会,貌似所有的remove函数都是只是移除,并不会销毁
void QStackedWidget::removeWidget ( QWidget * widget )
Removes widget from the QStackedWidget. i.e., widget is not deleted but simply removed from the stacked layout, causing it to be hidden.
Note: Ownership of widget reverts to the application.
void QStackedWidget::removeWidget ( QWidget * widget )
Removes widget from the QStackedWidget. i.e., widget is not deleted but simply removed from the stacked layout, causing it to be hidden.
Note: Ownership of widget reverts to the application.
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询