Skip to content

Remove widget #955

Answered by sedwards2009
Exzotic5485 asked this question in Q&A
Jun 30, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

QWidget has a setParent() which you can set to null to remove it from its parent.

If you have a bunch of pages/widgets and want to flip between them, then you should consider using QStackedWidget.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Exzotic5485
Comment options

@Exzotic5485
Comment options

@Exzotic5485
Comment options

Answer selected by Exzotic5485
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants