Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. is there a way to minimize/hide and show the QListWidget in my UI

is there a way to minimize/hide and show the QListWidget in my UI

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++qlistwidget
4 Posts 2 Posters 930 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr-Workalot
    wrote on 9 Jul 2020, 12:48 last edited by
    #1

    95953c30-7e53-4469-8024-72bca0bad7a3-image.png

    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 ?

    J 1 Reply Last reply 9 Jul 2020, 12:54
    0
    • M Mr-Workalot
      9 Jul 2020, 12:48

      95953c30-7e53-4469-8024-72bca0bad7a3-image.png

      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 ?

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 9 Jul 2020, 12:54 last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 9 Jul 2020, 13:03
      0
      • J jsulm
        9 Jul 2020, 12:54

        @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.

        M Offline
        M Offline
        Mr-Workalot
        wrote on 9 Jul 2020, 13:03 last edited by
        #3

        @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

        J 1 Reply Last reply 10 Jul 2020, 04:53
        0
        • M Mr-Workalot
          9 Jul 2020, 13:03

          @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

          J Online
          J Online
          jsulm
          Lifetime Qt Champion
          wrote on 10 Jul 2020, 04:53 last edited by
          #4

          @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...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          3/4

          9 Jul 2020, 13:03

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved