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. Resize dropdown list of a QComboBox
QtWS25 Last Chance

Resize dropdown list of a QComboBox

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 893 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
    Mark81
    wrote on last edited by
    #1

    I'm aware of the SizeAdjustPolicy of a QComboBox but it seems it set the size of the whole widget. Instead I want to keep the widget of a certain size, but to expand the dropdown list to fit the maximum width of the content items (to avoid ellipses).

    I don't understand what property define this behavior.

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

      Hi,

      You should test the workaround described in QTBUG-3097.

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

      M 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        You should test the workaround described in QTBUG-3097.

        M Offline
        M Offline
        Mark81
        wrote on last edited by
        #3

        @SGaist said in Resize dropdown list of a QComboBox:

        You should test the workaround described in QTBUG-3097.

        Yeah, it seems to work thanks. It's hard to believe that issue is still unresolved :O)

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

          You're welcome !

          Well, if you feel like it, you are welcome to contribute a fix so the bug can be closed and everybody can benefit from it :)

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

          M 1 Reply Last reply
          1
          • SGaistS SGaist

            You're welcome !

            Well, if you feel like it, you are welcome to contribute a fix so the bug can be closed and everybody can benefit from it :)

            M Offline
            M Offline
            Mark81
            wrote on last edited by Mark81
            #5

            @SGaist said in Resize dropdown list of a QComboBox:

            Well, if you feel like it, you are welcome to contribute a fix so the bug can be closed and everybody can benefit from it :)

            mmm... If I would be able to provide a fix I would not have post this question at all - I'm not a QtChampion :-)
            Seriously, what I meant is another thing. In the link you provided the user "Sergei Sachkov" already proposed a solution in the 2015, but they haven't include it in the newer releases yet! And the same user says this is known since 2008...

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

              No need for a title to contribute ;-)

              More seriously, up until recently, patches provided on Jira like that one couldn't be used as is. This rule has been relaxed but you still need someone to actually do the job. So it could very well be your starting point to contribute.

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

              M 1 Reply Last reply
              1
              • SGaistS SGaist

                No need for a title to contribute ;-)

                More seriously, up until recently, patches provided on Jira like that one couldn't be used as is. This rule has been relaxed but you still need someone to actually do the job. So it could very well be your starting point to contribute.

                M Offline
                M Offline
                Mark81
                wrote on last edited by
                #7

                @SGaist said in Resize dropdown list of a QComboBox:

                More seriously, up until recently, patches provided on Jira like that one couldn't be used as is. This rule has been relaxed but you still need someone to actually do the job. So it could very well be your starting point to contribute.

                I know it's a bit off-topic - I apologize.
                But perhaps I miss something. I thought the users submit proposals for fix/patch and the "Qt Company" will include them in the official releases. Otherwise who would guarantee the quality of the submitted code!?

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

                  That's indeed what is done but there is a procedure to follow.

                  Jira is the issues/features/tasks management part.

                  Then you have Gerrit which is the review tool. You have here the introduction on how to do a submission.

                  Everybody with an account can help review patches but you need the validation of approvers/maintainers to start the integration process. Approvers and maintainers do not necessarily work for the Qt Company.

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

                  1 Reply Last reply
                  2

                  • Login

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