Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mouse buttons not working with Qt6 apps [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Thu Oct 03, 2024 10:04 am    Post subject: mouse buttons not working with Qt6 apps [SOLVED] Reply with quote

I have two apps that are doing some odd things with their UI, both related to using Qt6. My WM is fvwm3, which appears to be using a mix of Qt and GTK for theming and widgets. Here's what I'm dealing with:

With app-office/texstudio-4.8.4-r2, the primary mouse button doesn't work at all. Clicking does nothing. There is sometimes a context menu (ie, the right-click menu) that appears, but only briefly. Using menus only works with the secondary mouse button. Dropdown menus don't work at all.

With app-office/calibre-7.19, using Qt6, none of the scrollbars -- nor any of the UI buttons on the main calibre window nor in the reader application -- respond to clicks with the primary mouse button. The button shows the button-clicked animation, but there's no action performed. Scrolling with the wheel works, and clicking menu items from the right-click menu in the main calibre window also works. Clicking the "Help" button spawns the calibre manual webpage in a web browser, but no other buttons seem able to spawn their respective windows or menus.

The app that's supposed to control theming for Qt6 -- qt6ct -- also doesn't respond to the mouse correctly.

What happened to my mouse under Qt6, and how can I fix it?

UPDATE: So, it turns out I had two conflicting button mappings: one in .xsession that was this:
Code:
exec xmodmap -e "pointer = 3 8 1 4 5 6 7 2 9 10 11 12" &

and one in /etc/X11/xorg.conf.d/11-inputs.conf that was this:
Code:

Option "ButtonMapping" "3 12 1 4 5 6 7 2 9 10 11 8 13 14 15 16"
(under the "InputClass" section for the mouse).

as you can see, those two mappings are not the same, and it turns out the one in .xsession was faulty, and Qt6 apps apparently paid attention to it while no other apps do. Commenting out the line in .xsession solved the problem.

Cheers,

EE


Last edited by ExecutorElassus on Sat Oct 19, 2024 5:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum