Open Jihadist opened 2 years ago
If I change it https://github.com/ColinDuquesnoy/QDarkStyleSheet/blob/master/qdarkstyle/dark/style.qss#L217 to
QGroupBox {
font-weight: bold;
border: 1px solid #455364;
border-radius: 4px;
padding: 2px;
margin-top: 14px;
margin-bottom: 4px;
}
QGroupBox::title {
subcontrol-origin: margin;
subcontrol-position: top left;
left: 4px;
padding-left: 2px;
padding-right: 4px;
padding-top: -8px;
}
it looks better on Linux
but worse on Windows
I dont know how to pass correct top-padding for both platforms.
@Jihadist these numbers are a little trick. Something that will help us a lot is: Could you reproduce this in other versions of our qdarkstyle? 2.8.X and 3.0.X, Also with other Qt like 12.3. We have changed this code recently, so we can revert. Tks
Look at font. Windows by default uses one font, Linux uses another, so these numbers cannot work ok on both platforms. I tried to explicitly specify font and then played with this numbers. It was ok but we need one font on qss level. I don't have any other ideas.
Language
C++
Description / Steps to Reproduce [if necessary]
Actual Result
Linux Ubuntu 20.10
Windows 7
![image](https://user-images.githubusercontent.com/26579016/139248708-c5cd7e6e-ab16-43a2-9ca2-5035f38648d4.png)
Expected Results / Proposed Result
Text is not overlapped by another widget