[Gambas-bugtracker] Bug #2573: qt Screen class returns wrong values when using QT SCALING
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Wed Jun 15 14:19:24 CEST 2022
http://gambaswiki.org/bugtracker/edit?object=BUG.2573&from=L21haW4-
Antonio OREFICE reported a new bug.
Summary
-------
qt Screen class returns wrong values when using QT SCALING
Type : Bug
Priority : Medium
Gambas version : Unknown
Product : Unknown
Description
-----------
I've, in my env vars:
QT_SCREEN_SCALE_FACTORS='eDP1=1.5;DP1=1.5;DP2=1.5;VIRTUAL1=1.5;'
My monitor have 1920x1280 pixels, at position 0,0.
But when I query the qt screen class, it returns:
Height: 853
Width: 1280
I need a way to understand the xrandr name of the monitor on which is placed a window and till now I used the screen class and xrandr to compare the geometries, but now this is not possible anymore, because the screen cllass returns scaled data, and imho it should not.
If you think this is the correct behaviour, then do you have a suggestion to do what i'd need?
Basically i'd need the real resolution and real position of a screen, thanks.
System information
------------------
[System]
Gambas=3.17.2
OperatingSystem=Linux
Kernel=5.19.0-rc2-1-mainline
Architecture=x86_64
Distribution=Arch Linux
Desktop=KDE5
Font=PT Sans,10
Scale=7
Theme=breeze
Language=it_IT.UTF-8
Memory=7709M
[Libraries]
Cairo=libcairo.so.2.11706.0
Curl=libcurl.so.4.8.0
DBus=libdbus-1.so.3.32.0
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.30
GStreamer=libgstreamer-1.0.so.0.2002.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.30
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.122.0.0
QT5=libQt5Core.so.5.15.4
SDL=libSDL-1.2.so.1.2.52
SQLite=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=plasma
DISPLAY=:0
EDITOR=kwrite
GB_GUI=gb.qt5
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:<home>/.gtkrc-2.0:<home>/.config/gtkrc-2.0
GTK_MODULES=canberra-gtk-module
GTK_RC_FILES=/etc/gtk/gtkrc:<home>/.gtkrc:<home>/.config/gtkrc
HOME=<home>
INVOCATION_ID=8d3b3bdf47a4474ea99f79fb71e77483
JOURNAL_STREAM=8:35689
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LC_ALL=it_IT.UTF-8
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MANAGERPID=579
MOTD_SHOWN=pam
MOZ_USE_XINPUT2=1
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=<home>
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_LINUX_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_LOGGING_RULES=*.debug=false
QT_SCREEN_SCALE_FACTORS=eDP1=1.5;DP1=1.5;DP2=1.5;VIRTUAL1=1.5;
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1373,unix/<hostname>:/tmp/.ICE-unix/1373
SHELL=/bin/bash
SHLVL=0
SYSTEMD_EXEC_PID=1976
TZ=:/etc/localtime
USER=<user>
WINEDLLOVERRIDES=winemenubuilder.exe=d
XAUTHORITY=<home>/.Xauthority
XCURSOR_SIZE=24
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=<home>/.config/kdedefaults:/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=5
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
XDG_SESSION_TYPE=x11
XDG_VTNR=1
force_s3tc_enable=true
More information about the Bugtracker
mailing list