V
V
Valentino_3232021-02-06 23:56:04
Qt
Valentino_323, 2021-02-06 23:56:04

What is the correct way to remove items in a QBoxLayout?

The program has to add / remove buttons (QPushButton) to a special QBoxLayout, but after 4-6 buttons have been removed, the floor of the button appears on the QBoxLayout, which was removed from the QBoxLayout via the removeWidget method, and prevents the display of other buttons, but it can also be clicked.
What causes such a problem?
How did the button reappear if I removed it from the QBoxLayout?
And then how to remove it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question