To give our Qt desktop application a stylish look, I have been utilizing Jorgen-VikingGod's impressive QSS framework as a foundation. Unfortunately, we encountered a hurdle when it came to usability on a dated tablet device running Windows. The tiny spin box buttons were too small for some of our customers to operate effectively.
One suggested solution was to create larger +/- buttons and position them on opposite sides of the spin box:
https://i.sstatic.net/mDmpk.png
However, this led to compatibility issues with certain Qt convenience controls like QColorDialog
:
https://i.sstatic.net/pmWoA.png
The QSS code I used is as follows:
(QSS Code here)
I attempted to tweak the selectors in my QSS code but could not achieve the desired outcome without causing a jumble of default and customized styles. It seems that QSS does not support CSS3-style filtering through the ":not" selector functionality.
Is there a way to apply this style globally to all spin boxes in my application except those within QColorDialog
? Alternatively, is there a method to exclude a specific subclass like QColSpinBox
from inheriting this styling? I prefer not to manually set this style individually on each spin box instance in my application.