I found a lot of answers about removing a widget from QVBoxLayout.
But I did not find the answer about deleting the layout. I know that I can put my sub-layout in a QWidget. I just want to know something else.
layout = QtGui.QVBoxLayout() item_in_layout = create_layout() layout.addLayout(item_in_layout)
比尔 盖子 source share