[okular] [Bug 421634] Presentation mode misrendering with two monitors and screen scaling
Tobias Deiminger
bugzilla_noreply at kde.org
Thu May 21 23:35:20 BST 2020
https://bugs.kde.org/show_bug.cgi?id=421634
--- Comment #4 from Tobias Deiminger <haxtibal at posteo.de> ---
While I did some digging on how size is calculated, I noted my usage of
QT_SCREEN_SCALE_FACTORS was wrong. Now I can't reproduce your issue any longer
if I use the global QT_SCALE_FACTOR instead of QT_SCREEN_SCALE_FACTORS.
$ QT_SCALE_FACTOR=1.5 okular
Oliver, could you try this? As you set the same 1.5 for each screen, you could
use the global parameter as well.
PS: Just saw QDesktopWidget doc [1] says "This class is obsolete". Does this
mean we'll have to replace QDesktopWidget in presentationwidget.cpp anyway?
PPS: QDesktopWidgetPrivate::_q_updateScreens [2] gives insight on how size is
calculated, basically it's the bounding rect of the QRegion union [3] of all
screen geometries from QGuiApplication::screens().
[1] https://doc.qt.io/qt-5/qdesktopwidget.html
[2]
https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/kernel/qdesktopwidget.cpp#n110
[3] https://doc.qt.io/qt-5/qregion.html#united
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list