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
Wizard font size issues #6156
Comments
This is not only the header: #6158 |
Can be reproduced on linux on a normal screen by setting an env variable, for example: |
I think the problem is that QWizard has some sizes hardcoded, and it cannot be resized dynamically |
It turns out that we make the wizard a fixed size by setting a banner to it. |
Suggested fix: #6164 |
I believe the fix from @ogoffart should help with Vincent's example, -- but probably not with mine. |
@jnweiger yes, it fixes both, the width of the wizard is fixed and the same as the width of the header banner |
@PVince81 care to give latest nightly: https://software.opensuse.org//download.html?project=isv:ownCloud:community:nightly&package=owncloud-client a try? |
@ogoffart I think the "Add Folder Sync Connection" button also has a prefixed width; the label is not being wrapped as for 2.4.0nightly-20171121: |
@SamuAlfageme That's really strange. I cannot reproduce the problem with the nightly, how do you reproduce it? Edit: What platform is this? |
@ogoffart might be a Qt upstream bug:
I remember an issue where extremely small text sizes also caused normally-hidden labels to be displayed: e.g. this is with a 6pt text size |
@SamuAlfageme ah, I can reproduce, thank you. Edit: fixed in #6186 |
The problem here is that the QPainter is created on the viewport with is a QWidget, but QAbstractItemView can have a different font, and the QStyleOptionViewItem::font is this font. QStyleOptionViewItem::font was used to compute the sizeHint, and the default font from the QPainter was used to draw the text, so they could be not in sync. Fix it by always using the font for QPushButton Reported in #6156 (comment)
The problem here is that the QPainter is created on the viewport with is a QWidget, but QAbstractItemView can have a different font, and the QStyleOptionViewItem::font is this font. QStyleOptionViewItem::font was used to compute the sizeHint, and the default font from the QPainter was used to draw the text, so they could be not in sync. Fix it by always using the font for QPushButton Reported in #6156 (comment)
Setup
owncloud-client-2.4.0~alpha1-8649.1.x86_64
plasma5-workspace-5.11.2-1.2.x86_64
openSUSE Tumbleweed
I'm on a HighDPI screen and I might have tweaked some fonts in Plasma 5:
The text was updated successfully, but these errors were encountered: