View Issue Details

IDProjectCategoryView StatusLast Update
0014335ScribusUser Interfacepublic2019-02-26 20:01
ReporterKunda Assigned ToKunda  
PrioritynormalSeverityminorReproducibilityhave not tried
Status confirmedResolutionopen 
PlatformManjaroOSLinuxOS Version16.10 64 bit
Product Version1.5.3.svn 
Summary0014335: Big icons on HiDPI (hdpi) and large status bar
DescriptionIf I start Scribus 1.5.3svn r21463 Qt5.7 all icons are too large.

If I invoke it from the command line like so:
QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=0.786 scribus

and change the fonts to 11pt then I can view it correctly. See chat snippet below:

<killermoehre> Kunda_: do you have a HiDPI display? looks like this is the problem with the big icons
<Kunda_> yes
<Kunda_> i have hidpi
<killermoehre> Kunda_: with »QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=0.786 scribus
« it looks not so bad, but you have to set all font sizes in the application from 9 to 11
<Kunda_> wow, that really helped
<killermoehre> Kunda_: so scribus does the HiDPI stuff wrong. I have a DPI setting of 125, so I have to use QT_SCALE_FACTOR=96/125 and scale every font by 125/96
TagsHiDPI, upstream
PatchNo

Relationships

related to 0014180 new scribus now looks weird on my hidpi monitor 
has duplicate 0015425 closedjghali toolbar icons are too big on hdpi screen (on linux) 

Activities

jghali

2016-10-28 23:48

administrator   ~0042217

Using QT_SCALE_FACTOR=0.786 is wrong in the first place because this indicates Qt to reduce scale, which makes no sense for HiDPI. Also Qt does not support non integer scale factors at this point.

jghali

2016-10-29 07:00

administrator   ~0042218

The QT_SCALE_FACTOR has been also wrongly computed: as the DPI is higher, Qt has to scale up, so the theoretical scale factor is 125/96. But as previously mentioned, non integer scale factor are not supported by Qt. See http://blog.qt.io/blog/2016/01/26/high-dpi-support-in-qt-5-6/

"Q: Are non-integer scale factors supported?
A: Qt uses qreal in the API, and will allow setting non-integer scale factors via QT_SCALE_FACTOR. However, Qt does not guarantee that graphics and styles will be glitch-free in that case. Styles may break first: the fusion style is generally most scalable. The Qt platform plugins round the reported scale factors to the nearest integer."

killermoehre

2016-10-29 20:19

reporter   ~0042222

Hi,

killermoehre form #xfce here.

Problem is, IMHO, that qt5.7 for some reason does the recognition of the DPI wrong. VLC build against qt5.7 shows the same behavior. Maybe it's a Xfce bug, too.

Kunda

2016-11-18 17:40

updater   ~0042462

@killermoehre how can we learn if this is a Scribus issue or an upstream Xfce bug?

killermoehre

2016-11-19 09:18

reporter   ~0042469

@Kunda well, it's not a Scribus issue, but either a Xfce or Qt issue (and because it worked with older Qt, I think it's a Qt issue).

Kunda

2016-11-19 11:39

updater   ~0042471

@killermoehre do you mind opening a qt bug right-quick I'll add screenshots for it. I'm just not 100% on what the issue is and don't know how to convey it well.
Cool?

killermoehre

2016-11-19 12:14

reporter   ~0042474

@Kunda yes, I mind.
The question is how Qt is determining the DPI settings. So pleas open a bug at there side, stating that you run Xfce and that the scaling is all off (with screenshot). The devs will probably know how to fix it or at least where to look at.

Kunda

2016-11-19 12:28

updater   ~0042475

@killermoehre Ok, here is the upstream bug
https://bugreports.qt.io/browse/QTBUG-57211
Do you mind chiming in so that the devs see it's reproducible? Thanks!

alexandre

2018-12-07 17:43

developer   ~0045700

When I run e.g. PhotoFlare with 'export QT_SCALE_FACTOR=2', I get a more or less sensible scaling. Icons are crap, but at least menu and other text items in the UI are all right:

https://imgur.com/a/nv6Ov4r

Not with Scribus, though:

https://imgur.com/a/tXQSDqr

(This is the latest from SVN).

Unsure if I'm of any help here, just thought an update might be in place.

Issue History

Date Modified Username Field Change
2016-10-28 14:54 Kunda New Issue
2016-10-28 14:54 Kunda Tag Attached: HiDPI
2016-10-28 14:55 Kunda Description Updated
2016-10-28 14:56 Kunda OS Yosemite => Linux
2016-10-28 14:56 Kunda OS Version 10.10.5 => 16.10 64 bit
2016-10-28 14:56 Kunda Platform Manjaro 16.10 => Manjaro
2016-10-28 23:48 jghali Note Added: 0042217
2016-10-29 07:00 jghali Note Added: 0042218
2016-10-29 11:50 Kunda Summary HiDPI broken => Big icons on HiDPI
2016-10-29 12:36 Kunda Summary Big icons on HiDPI => Big icons on HiDPI and large status bar
2016-10-29 20:19 killermoehre Note Added: 0042222
2016-10-31 08:43 JLuc Relationship added related to 0014180
2016-11-18 17:40 Kunda Note Added: 0042462
2016-11-19 09:18 killermoehre Note Added: 0042469
2016-11-19 11:39 Kunda Note Added: 0042471
2016-11-19 12:14 killermoehre Note Added: 0042474
2016-11-19 12:28 Kunda Note Added: 0042475
2016-11-19 12:29 Kunda Tag Attached: upstream
2016-11-19 12:29 Kunda Assigned To => Kunda
2016-11-19 12:29 Kunda Status new => confirmed
2016-11-21 09:55 Kunda Note View State: 0042474: private
2016-11-21 09:55 Kunda Note View State: 0042474: public
2018-09-15 15:09 jghali Relationship added has duplicate 0015425
2018-09-17 07:33 ale Summary Big icons on HiDPI and large status bar => Big icons on HiDPI (hdpi) and large status bar
2018-12-07 17:43 alexandre Note Added: 0045700
2019-02-26 20:01 JLuc Description Updated