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. Cannot get small size of QListWidget

Cannot get small size of QListWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 966 Views 2 Watching
  • 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.
  • F Offline
    F Offline
    fclushio
    wrote on last edited by
    #1

    I cannot make QListWidget smaller than shown. I want to make it resizable up to 0 pixels so it can be "collapsed".

    QListWidgetTest_RRYJzcjnUl.png

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      That is kinda odd as i can make it like 15 pixels.

      However, you can use setMaximumHeight to force it any size.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Since you want to collapse it, maybe QSplitter would be of interest.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        F 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          Since you want to collapse it, maybe QSplitter would be of interest.

          F Offline
          F Offline
          fclushio
          wrote on last edited by
          #4

          @SGaist Well, I want to collapse it by window's border

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Did you set its minimum size to 0 ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            mrjjM 1 Reply Last reply
            1
            • SGaistS SGaist

              Did you set its minimum size to 0 ?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @SGaist

              Actually a clean GUI project with the widget only allows 73 as minimum.

              alt text

              Im not sure where this constrain comes from.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Good question, I also wonder whether it's Designer specific.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                mrjjM 1 Reply Last reply
                1
                • SGaistS SGaist

                  Good question, I also wonder whether it's Designer specific.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @SGaist
                  well, it keeps this limit when run
                  alt text

                  I was first thinking it must be due to QMainWindow but it's then odd same limits
                  design and run-time considering in Designer, the MainWindow is not in effect as such.

                  one can force it ith setMaximumHeight but It's a puzzle for me
                  what actually sets this.

                  1 Reply Last reply
                  0

                  • Login

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