I want to make the "Application 1" disappear when the "Single" button is clicked. And show it again i mean both when "Split" button is clicked. Is there any method to make disappear/collapse a widget from QSplitter().
Here's the basic layout :

Thanks in advance.
QWidgethas functionsshow()andhide(), if Application1 is insideQWidgetor any other widget inheritingQWidget, you can callhideon the object of that widget when user clicks onSinglebutton, (widget.hide()). When user clicks onSplitbutton you can callshow()on the same object to show the widget.Edit
Another way of achieving this would be:
to set the size of
QSplitter. WhenSingleButton is pressed, do the following:When
splitbutton is pressed do the following:Assuming that the
selfrefer to mainWindow containing the splitter andself.width()gives the width of mainWindow.