You are not logged in.

#1 2022-01-22 15:57:03

beachcoder
Member
Registered: 2009-10-08
Posts: 130

[SOLVED] Broken Qt applications with cropped menus, buttons, etc.

Hello there!

I'm having a strange problem with Qt-based applications, for example qt5ct looks like this:
screenshot

I've then tried this:

$ unset QT_STYLE_OVERRIDE
$ export QT_QPA_PLATFORMTHEME=qt5ct
$ qt5ct &

But this makes it look like below then and not really better.
screenshot

I wonder where QT_STYLE_OVERRIDE is set, and also why QT_QPA_PLATFORMTHEME should be set to qt5ct. I didn't do this on my own.
I'm using Enlightenment E0.25.1 from the official packages as window manager.
My graphics card is Intel Corporation HD Graphics 530 (rev 06).

Any idea?

Last edited by beachcoder (2022-02-01 19:48:49)

Offline

#2 2022-02-01 15:06:19

raster
Package Maintainer (PM)
Registered: 2018-02-06
Posts: 1

Re: [SOLVED] Broken Qt applications with cropped menus, buttons, etc.

enlightenment sets these if you have "match enlightenment theme if possible" enabled in application theme settings. e has done this for a good decade or so...

Offline

#3 2022-02-01 18:58:07

beachcoder
Member
Registered: 2009-10-08
Posts: 130

Re: [SOLVED] Broken Qt applications with cropped menus, buttons, etc.

Hello, after some playing around together with raster, I've found that this has something to do with the scaling set with enlightenment.

This is how

vlc

shows its menus:
screenshot

When I then run

QT_SCALE_FACTOR=1.2 vlc

the menus are displayed right, and scaling as well:
screenshot

Might this be a Qt bug? Or an invalid setting somewhere?

Last edited by beachcoder (2022-02-01 19:49:31)

Offline

#4 2022-02-01 19:32:48

beachcoder
Member
Registered: 2009-10-08
Posts: 130

Re: [SOLVED] Broken Qt applications with cropped menus, buttons, etc.

Ok, I've found the solution: QT applications don't follow Enlightenments scale settings. I was able to fix it by setting

QT_FONT_DPI=96

environment variable in the Enlightenment environment settings following HiDPI wiki hints.

Here's causing, solution and result in one screenshot.
screenshot

Last edited by beachcoder (2022-02-01 19:49:59)

Offline

#5 2022-02-01 19:41:09

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Broken Qt applications with cropped menus, buttons, etc.

Please edit your posts and replace all of the oversized images. Thanks.
CoC - Pasting pictures and code


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2022-02-01 19:50:16

beachcoder
Member
Registered: 2009-10-08
Posts: 130

Re: [SOLVED] Broken Qt applications with cropped menus, buttons, etc.

Slithery wrote:

Please edit your posts and replace all of the oversized images. Thanks.
CoC - Pasting pictures and code

Hope it is OK now.

Offline

Board footer

Powered by FluxBB