is there a way to minimize/hide and show the QListWidget in my UI
-
This is my UI, on the right side i have a QListWidget with 3 items, when i click these items, the corresponding entries on the left side of the UI must be populated , anyways The QListwidget on the right side, i do not want it to be always visible, i want the QListwidget to be minimized usually and show up once the "show options>>" button is clicked, and when i click it again, it should be minimized again,
is there any way to accomplish this using QT Designer or code, what widgets or tools i need to use to get this ?
-
@Mr-Workalot Such a list widget should be usually on the left side as the workflow is usually left-to-right.
One possibility would be https://doc.qt.io/qt-5/qsplitter.html with collapsible set to true. -
@jsulm Thanks for the suggestion , i would keep it to the right,
How can i implement this using the QT designer, when i right click my qlistwidget, in the dropdown i can see options like "Layout vertically in splitter" , "Layout hornizontally in a splitter" but not able to select this, i guess this can be done when i select 2 widgets atleast ,
would be really helpful if you can list the steps to do this
-
@Mr-Workalot said in is there a way to minimize/hide and show the QListWidget in my UI:
i guess this can be done when i select 2 widgets atleas
Yes.
Select the your list widget and the left layout, then you can layout them using splitter...