https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #11 from Sven Brauch ---
FWIW I would provide a patch for this if I could, but I think it's not possible
right now.
Gwenview wants to 1:1 map image pixels to screen pixels for zoom = 100%.
It cannot do that if it gets a surface from the
https://bugs.kde.org/show_bug.cgi?id=465688
Nate Graham changed:
What|Removed |Added
Keywords||wayland
--
You are receiving this mail because:
https://bugs.kde.org/show_bug.cgi?id=465688
Nate Graham changed:
What|Removed |Added
CC||slartibar...@gmail.com
--- Comment #10 from Nate
https://bugs.kde.org/show_bug.cgi?id=465688
Nate Graham changed:
What|Removed |Added
Status|REPORTED|CONFIRMED
Ever confirmed|0
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #9 from Sven Brauch ---
Hi, I tried this and I think Jorge did too, and both of us get "2.0" from
QApplication::devicePixelRatio() with 125% scaling configured in
systemsettings. I also tried in Qt6, and I *still* get "2.0".
Gwenview as a
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #8 from Nate Graham ---
Wayland does support fractional scaling, it's just that the result is a bit
blurry in Qt 5. In 6, this is better. That shouldn't affect Gwenview though and
using devicePixelRatioF() is sane. Feel free to submit a
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #7 from Sven Brauch ---
To clarify again, I think there is no problem in Gwenview, its code already
accounts for display scaling in abstractimageview.cpp. It just gets the wrong
scale from Qt.
--
You are receiving this mail because:
You
https://bugs.kde.org/show_bug.cgi?id=465688
Sven Brauch changed:
What|Removed |Added
CC||n...@kde.org
--
You are receiving this mail
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #6 from Sven Brauch ---
Ok, the situation here seems to be that Wayland only supports integer scaling
at the moment. My 125% scaling is rounded up to 2, which is what is used by
Gwenview to scale the image, which makes it 2 / 1.25 = 1.6
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #5 from Sven Brauch ---
You need devicePixelRatioF for sure, devicePixelRatio is only for integer
scaling.
--
You are receiving this mail because:
You are watching all bug changes.
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #4 from Jorge ---
Using "devicePixelRatio" methods returns "2" in my case, which may be due to
using KF5/Qt5 under Wayland. I've tried building with Qt6 but with no luck :-/
--
You are receiving this mail because:
You are watching all bug
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #3 from Sven Brauch ---
By the way, on my screen on Wayland, 125% wouldn't fit either. I need to set
~160%, which I can't make sense of. The only calculation I can come up with
which gives 1.6 would be 1.2 * 1/0.75, but it requires some
https://bugs.kde.org/show_bug.cgi?id=465688
--- Comment #2 from Sven Brauch ---
Hi, QWidget has a devicePixelRatioF which contains this 1.25 IIRC:
https://doc.qt.io/qt-6/qpaintdevice.html#devicePixelRatioF -- I think that's
what you need?
--
You are receiving this mail because:
You are
https://bugs.kde.org/show_bug.cgi?id=465688
Jorge changed:
What|Removed |Added
CC||jorge_barroso...@hotmail.co
|
14 matches
Mail list logo