Answer the question
In order to leave comments, you need to log in
How to remove elements in Layout and Layout itself?
How to remove a group of widgets. There is a GridLayout. It contains various elements. On a button click inside the Layout, delete all the contents of the Layout and the Layout itself, how to do this? In Qt, this is somehow difficult to do.
By clicking the "cancel" button, you must delete its GridLayout and all elements of this GridLayout.
void WorkPlace::Not_Add_Personal()
{
QPushButton *myButton = qobject_cast<QPushButton *>(sender()); // Кнопка "отмена"
//qDebug()<<myButton->parent()->objectName(); // показывает, что родитель ScrollArena, но ведь кнопка находится в gridLayout
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question