You are not logged in.

#1 2025-04-06 23:12:41

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

qt6.9 b0rks qterminal

Hello,

I have my system rolled back to April 4th, because on the 5th comes the update to qt6.9, which makes applications ran inside qterminal -- think vim, mutt, ls, man -- display these weird black and/or grayish bars... I've tried installing lxqt-qtplugin (as suggested here), to no avail. I've also tentatively tried to hold back (IgnorePkg) qt6-basic (qterminal wouldn't start due problems related to partial updates) and libqtxdg (same weird bars problem). Hence I would kindly ask for the wisdom of the Arch crowds... Thank you in advance.

Offline

#2 2025-04-07 06:38:34

seth
Member
Registered: 2012-09-03
Posts: 62,732

Re: qt6.9 b0rks qterminal

display these weird black and/or grayish bars

Do you have a screenshot illustrating how weird exactly they are?

Offline

#3 2025-04-07 12:11:07

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

Re: qt6.9 b0rks qterminal

See here. The top image is when running

man downgrade

The bottom image of an empty qterminal terminal...

Offline

#4 2025-04-07 14:21:12

seth
Member
Registered: 2012-09-03
Posts: 62,732

Re: qt6.9 b0rks qterminal

Looks like empty lines don't get cleared/painted at all (so probably behavior qterminal relied on got optimized away)

Is this on X11, wayland or doesn't matter?
Do you set either application or terminal transparency?
Does setting a background image change anything?

Offline

#5 2025-04-12 15:10:34

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

Re: qt6.9 b0rks qterminal

X11, no and haven't tried, because I do not use transparencies.

Offline

#6 2025-04-12 18:34:41

seth
Member
Registered: 2012-09-03
Posts: 62,732

Re: qt6.9 b0rks qterminal

You should™ be able to set some backgroup pixmap inside qterminal, like a wallpaper.
This isn't related to compositing or window transparency.

Offline

#7 2025-04-12 20:59:23

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

Re: qt6.9 b0rks qterminal

Ok, with a background set, the problem seems to go away! Weird!

Offline

#8 2025-04-12 21:28:37

seth
Member
Registered: 2012-09-03
Posts: 62,732

Re: qt6.9 b0rks qterminal

qterminal now has to actively paint the background and not just set the palette.


qtermwidget is a bit inconsistent about the opaque paint event:
https://github.com/lxqt/qtermwidget/blo … y.cpp#L434
https://github.com/lxqt/qtermwidget/blo … y.cpp#L717

It defaults to an opaque paint event (ie. telling Qt it won't have to clear the window) and then negates that when you set a background image but ::paintEvent seems to only paint the contentsRect() when there's a background image - ie. the WA_OpaquePaintEvent flag seems to be set backwards.
Afaict there's also no setAutoFillBackground() for the display

::drawBackground() says "// The whole widget rectangle is filled by the background color from" but is used on "const QRegion regToDraw = pe->region() & cr;", maybe a later introduced optimization.

Despite the change coming from Qt I suspect Qt simply fixed a bug what exposed another bug in QTermWidget => https://github.com/lxqt/qtermwidget/issues

Offline

Board footer

Powered by FluxBB