Recent

Author Topic: Qt5 HiDPI canvas scaled  (Read 294 times)

zamtmn

  • Hero Member
  • *****
  • Posts: 532
Qt5 HiDPI canvas scaled
« on: October 29, 2022, 09:06:15 am »
Hi!
How can I disable HiDPI scaling for a specific canvas? The entire GUI scales correctly according to the settings, but I don't need to do this for drawing area canvas. But both coordinates and line width are scaled.
Look at the attached screenshots of qt5scaled.png and opengl.png, the designation of the coordinate axis is drawn in the same coordinates, but for qt5 it is shifted and stretched. Also on qt5.png vs qt4.png you can see how the line width on fonts are scaled

zeljko

  • Hero Member
  • *****
  • Posts: 1385
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Qt5 HiDPI canvas scaled
« Reply #1 on: October 29, 2022, 11:35:24 am »
Lazarus version ? OS ?

zamtmn

  • Hero Member
  • *****
  • Posts: 532
Re: Qt5 HiDPI canvas scaled
« Reply #2 on: October 29, 2022, 12:35:28 pm »
Lazarus 2.3.0 (rev main-2_3-1702-ge47c69672b) FPC 3.3.1 x86_64-linux-qt5

KDE neon 5.26
KDE Plasma: 5.26.0
KDE Frameworks: 5.99.0
Qt: 5.15.6
5.8.0-55-generic (64)
X11
16 × Intel® Core™ i9-9900K CPU @ 3.60GHz
31,3 GB RAM
Quadro M5000/PCIe/SSE2

 

TinyPortal © 2005-2018