FS#51338 - [qt4] Middle mouse button scroll doesn't work

Attached to Project: Arch Linux
Opened by Constantine (Hi-Angel) - Wednesday, 12 October 2016, 08:15 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 12 October 2016, 10:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
For qt4 apps middle mouse button click to scroll-bar doesn't scroll. Tested with vlc and Amarok, so it seems to be specifically qt4 library issue.

Also, I relatively recently moved to Archlinux, for ≈4-5 month, and I seem to recall it worked here before.

Additional info:
* package version(s) 4.8.7-10


Steps to reproduce:
1. Open a VLC or Amarok
2. Make up a playlist long enough for scrollbar to appear.
3. Click the empty space after the bar with middle mouse button. It ought to scroll the bar till the point of click, but instead it does nothing.
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 12 October 2016, 10:25 GMT
Reason for closing:  Not a bug
Comment by Antonio Rojas (arojas) - Wednesday, 12 October 2016, 08:44 GMT
Works for me, please try with a clean user.
Comment by Constantine (Hi-Angel) - Wednesday, 12 October 2016, 09:36 GMT
Okay, I created and logged as a new user, ran a DE, opened a playlist in VLC, and the problem still persist.

May that then be a theme issue? What theme are you using. FWIW, I didn't change the default one though.
Comment by Antonio Rojas (arojas) - Wednesday, 12 October 2016, 09:37 GMT
Could be a theme issue, a DE issue, an input driver issue... works fine on Plasma with the Breeze style and libinput driver.
Comment by Constantine (Hi-Angel) - Wednesday, 12 October 2016, 09:43 GMT
By input driver you mean that the button is either ignored or have unusual keycode? No, I don't think it's the case, because middle mouse scroll works in qt5 (e.g. with systemsettings5 app), and GTK (e.g. in Pidgin and firefox, though the latest needed a little tweak).

Neither it's a DE issue: with a new user I tested it with gnome-on-wayland (because it was easy to run without logging out). ATM I am in Awesome WM with $XDG_CURRENT_DESKTOP=KDE.

I'll have to check a theme, but I seems to have had Breeze too. But may be it's Qt5 theme, i.e. I don't know what theme is set for Qt4.
Comment by Antonio Rojas (arojas) - Wednesday, 12 October 2016, 10:08 GMT
Use qtconfig-qt4 to check which theme you're using. For me all of them work except for "Windows"
Comment by Constantine (Hi-Angel) - Wednesday, 12 October 2016, 10:22 GMT
Thank you, it's solved!

Turns out the problem is indeed the theme. The default one was "Desktop Settings(Default)", and it did draw nothing in the preview box. I set it to "GTK+", an example appeared in the preview box, and middle mouse button click started working!

I should say, I surprised, because unlike GTK, Qt doesn't allow to set Emacs/readline movement shortcuts in textboxes, so I thought that theming capabilities are pretty much limited to appearance.

Loading...