QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.26.4
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by John Hyslop - 20.11.2021
Last edited by Andrew - 03.12.2021

FS#2314 - Combobox Width too Small When Using Themes

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

Closed by  Andrew
03.12.2021 20:29
Reason for closing:  Fixed
Pete Vickerstaff commented on 20.11.2021 07:33

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.

Pete Vickerstaff commented on 20.11.2021 08:51

I've just checked using Qt version 5.8, same problem, so the problem must have always existed.

Pete Vickerstaff commented on 20.11.2021 09:42

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 ?

John Hyslop commented on 20.11.2021 11:12

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

Pete Vickerstaff commented on 20.11.2021 11:15

Andrew, I don't suppose it's possible to increase the width of the affected QComboBox's is it ??

Pete Vickerstaff commented on 20.11.2021 16:39

It appears I was having a massive brain fart this morning. All I have to do is add the line...

min-width: 20px;

....to the QComboBox section and all is fixed !!

Please ignore my above ramblings !!

Pete Vickerstaff commented on 20.11.2021 18:28

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.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing