Unsolved How to delete previous widget
-
Hi guys,,,
Please help me to solve this issue.....
how to delete previous widget,,,after replacing widget with another widget -
@Bharth this seems somehow familiar...
but we're going to need more information about your situation in general
int i = myLayout->indexOf(widgetToRemove), QWidget *w = myLayout->takeAt(i); w-> deleteLater();
-
@J-Hilk thank you for reply,
i have 1 main widget where in that their will be signup and login button, when i click on signup button main widget should replace with signup widget and in the same way when i click on login button main widget should replace with login widget, but in this process main widget should delete when i replace it with signup or login widget ,and in the same way when i move to next widget previous widget should delete througout my project. -
Hi,
Is that some kind of wizard ?
-
This post is deleted!