FS#2314Combobox Width too Small When Using Themes
- Type
- Bug
- Status
- Closed
- Resolution
- Fixed
- Category
- QCAD (main)
- Severity
- Low
- Priority
- Low
- Reported version
- 3.26.4
- Operating system
- All
- Reported
- 2021-11-20 by johnhyslop
- Closed
- 2021-12-03 by andrew
Hi Andrew
The Pre-Installed & User Generated Themes Affect Some Comboboxes
Others May Also be Affected But I've Only Noticed These Recently..
They Appear to be OK with Default & Dark Themes Though..
Cheers
John
QCAD/CAM
Version: 3.26.4 "File:Autosave"
Version: 3.26.4.13 snapshot "Widgets:Property Editor & File:Autosave"
Build Date: Nov 18 2021
Revision: fbb9f37
Qt Version: 5.8.0
Architecture: x86_64
Compiler: gcc 4.8.1


Comments (7)
I've had a look at this Andrew. I'm pretty sure it affects all combo boxes. It would seem that if I apply any formatting to a QComboBox it has the above effect. The only formatting I use is background and border, but even if I just have background colour formatting it screws the width.
And it's possible that it's always been like this, certainly 3.26.3 and 3.26.4.7 show the same width restriction. I think John found it because of the introduction of Decimals/Precision option in Widgets/Property editor.
Obviously the only fix I can see is to remove all formatting for QComboBox elements. Let me know if this is what you'd like me to do.
I've just checked using Qt version 5.8, same problem, so the problem must have always existed.
OK, after a bit more investigation. It was being caused by me using a gradient fill background colour on QComboBox elements, together with applying a border colour and a border radius. Making the background a single colour and deleting the border formatting has fixed the problem.
Are you happy for me to apply the above fix Andrew ?
Hi Pete
Wasn't sure if it was a QT thing or not.
Whatever Andrew or yourself think is the
best thing to do.
Cheers
John
Andrew, I don't suppose it's possible to increase the width of the affected QComboBox's is it ??
It appears I was having a massive brain fart this morning. All I have to do is add the line...
....to the QComboBox section and all is fixed !!
Please ignore my above ramblings !!
This also affects two more combo boxes....
Defaults for New Drawings > Dimension Settings > Decimal Separator
File > Quick SVG Export > Scaling
....so the min-width: 20px should be min-width: 90px.