VirtualBox

Ignore:
Timestamp:
Jul 27, 2023 4:55:16 PM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158575
Message:

FE/Qt: bugref:10450: Linux: Ignore QT_SCALE_FACTOR env var set by some DE, like Mate; This var used in Qt5 as override, but in Qt6 as additional multiplier, no idea why; As a result we have x4 scale-factor when x2 is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r100652 r100718  
    478478#  endif
    479479# endif
     480#else
     481# ifdef VBOX_WS_NIX
     482        // WORKAROUND:
     483        // Some Desktop Environments forcing this variable which was useful in Qt5 case.
     484        // But in Qt6 case this variable is additional multiplier to scale-factor
     485        // calculated automatic way, which means for x2 the effective factor will be 2x2=4.
     486        // No idea how to proceed, probably we will ignore this variable for now, by
     487        // setting it to be always equal to 1.
     488        qputenv("QT_SCALE_FACTOR", "1");
     489# endif
    480490#endif
    481491
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette