Resize dropdown list of a QComboBox
-
I'm aware of the
SizeAdjustPolicy
of aQComboBox
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.
-
Hi,
You should test the workaround described in QTBUG-3097.
-
@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)
-
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 :)
-
@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... -
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.
-
@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!? -
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.