QLayout: Attempting to add QLayout “” to QWidget “”, which already has a layout
When you assign a widget as the parent of a QLayout by passing it into the constructor, the layout is automatically set as the layout for that widget. In your code you are not only doing this, but explicitly calling setlayout(). This is no problem when when the widget passed is the same. If they … Read more