You are not logged in.

#1 2024-03-07 18:10:54

MaximGun
Member
Registered: 2023-05-26
Posts: 7

[SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

I updated to Plasma 6 yesterday. Now, when I mouse over the windows of Qt5 apps like Haruna or QMC2, they show the wrong cursor theme. It looks like the Adwaita cursor, but I can't tell for sure. I am using the default Breeze cursor theme through Settings. Qt5 apps are the only ones exhibiting this problem. I installed the "breeze5" package, so the apps themselves are themed correctly. Any thoughts would be appreciated.

Last edited by MaximGun (2024-03-07 19:26:57)

Offline

#2 2024-03-07 19:01:47

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 87

Re: [SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

I can confirm. I have the same behaviour. Installing breeze5 helped for the theming issue. Thanks for the hint!
Additionally, I found https://discuss.kde.org/t/qt5-apps-usin … yland/6850.

#/etc/profiles.d/mypersonalenvironment.sh
export XCURSOR_SIZE=48

fixed my issue with the next login.

Last edited by Funny0facer (2024-03-07 19:21:12)

Offline

#3 2024-03-07 19:26:34

MaximGun
Member
Registered: 2023-05-26
Posts: 7

Re: [SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

Nice find, thanks! Exporting XCURSOR_SIZE=30 and XCURSOR_THEME=breeze_cursors worked for me. Seems like Qt5 apps should inherit cursor themes automatically, but marking solved nevertheless.

Offline

#4 2024-03-07 21:07:06

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,124

Re: [SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

You're missing plasma5-integration and/or kwayland-integration

Offline

#5 2024-03-07 21:32:55

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 87

Re: [SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

kwayland-integration was installed with the transition to plasma6 on my machine.
As far as I can see, I need both breeze5 and plasma5-integration to have e.g. keepassxc displaying correctly.

See following pictures:
☐ breeze5
☐ plasma5 integration
https://ibb.co/BPzNKb8

☐ breeze5
☑ plasma5 integration
https://ibb.co/XVLL5Q2

☑ breeze5
☐ plasma5 integration
https://ibb.co/TgfKv6t

☑ breeze5
☑ plasma5 integration
https://ibb.co/SXgP4GW


what i can confirm: with plasma-integration installed, the cursor was handled correctly.

Offline

#6 2024-03-07 22:17:46

MaximGun
Member
Registered: 2023-05-26
Posts: 7

Re: [SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

arojas wrote:

You're missing plasma5-integration and/or kwayland-integration

Thanks. Even better than the environment variable hack smile

Offline

#7 2024-03-08 22:05:37

AnArchUser123
Member
Registered: 2020-11-07
Posts: 15

Re: [SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

This doesn't seem to work for flatpak apps. I have plasma5 integration, breeze5 and kwayland-integration and it isn't showing correctly for QT5 programs like nheko. This use to work fine on plasma 5.

Offline

#8 2024-03-09 23:41:28

OpusOne
Member
Registered: 2023-05-31
Posts: 89

Re: [SOLVED] Qt5 apps showing wrong mouse cursor on Plasma 6

I've installed plasma5-integration and Qt5 apps don't have this issue, but I'm having this mouse cursor issue in some GTK apps, in particular apps using wxWidgets.
For instance, I use KiCad, which uses wxWidgets 3.2.4. The default mouse cursor inside its windows is the Adwaita one instead of the one in my current theme. But in wxMaxima (which also uses wxWidgets 3.2.4), mouse cursors are all from my current theme. So I have a hard time figuring out what the difference is.

To give a bit more info, in KiCad, for instance, the default cursor is the Adwaita one, but if I right-click inside a KiCad window (which triggers a context menu), the cursor changes to the current Plasma one. It gets back to the Adwaita one when I close the context menu. Puzzled.

With Plasma 5, I had no such issue.

Offline

Board footer

Powered by FluxBB