-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGroupBox: text overlaping by another widget #295
Comments
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 |
@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
Expected Results / Proposed Result
Text is not overlapped by another widget
The text was updated successfully, but these errors were encountered: