Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518670 - Qt5: mouse settings such as "reverse scroll direction" are ignored
Summary: Qt5: mouse settings such as "reverse scroll direction" are ignored
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-31 12:31 UTC by Simon
Modified: 2014-12-15 21:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the two different strace files (straceFiles.tgz,12.80 KB, application/x-compressed-tar)
2014-12-12 12:09 UTC, Simon
Details
the mini test program for scroll testing (miniscroll.tgz,1.84 KB, application/x-compressed-tar)
2014-12-12 12:10 UTC, Simon
Details
strace of the miniscroll on gentoo (miniscroll.gentoo-qt5.4.0_rc.strace,93.59 KB, text/plain)
2014-12-12 16:38 UTC, Simon
Details
strace of the miniscroll on digia qt (miniscroll.qt5.4.0.strace,96.75 KB, text/plain)
2014-12-12 16:38 UTC, Simon
Details
diff miniscroll.gentoo-qt5.4.0_rc.strace miniscroll.qt5.4.0.strace (strace_differences.diff,87.57 KB, patch)
2014-12-12 16:39 UTC, Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2014-07-31 12:31:09 UTC
In KDE I reverse my scrolling through the setting: 
"System Settings"->"Hardware"->"Input Devices"->"Mouse"->"General"->"Reverse scroll direction"

If I build an application with Qt4 or the precompiled Qt5 packages from digia, Qt acts like the configured scroll direction, only the build with the Qt5 from the qt overlay do not work as expected.
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2014-08-04 12:42:26 UTC
Where is this preference saved?

@kde, any ideas?
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2014-08-04 15:38:43 UTC
Why should a qt application should something know about kde configuration? And why this should be a distribution bug?

~/.kde4/share/config/kcminputrc:

[Mouse]
ReverseScrollPolarity=false
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2014-08-05 00:43:19 UTC
(In reply to Johannes Huber from comment #2)
> Why should a qt application should something know about kde configuration?
> And why this should be a distribution bug?

I don't know, but the reporter claims that the setting is respected by the precompiled Qt5 binaries distributed by Digia.

> ~/.kde4/share/config/kcminputrc:

This path (or parts of it) doesn't appear anywhere in the qtbase repo.
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2014-08-06 17:11:04 UTC
(In reply to Davide Pesavento from comment #3)
> I don't know, but the reporter claims that the setting is respected by the
> precompiled Qt5 binaries distributed by Digia.
> 
> > ~/.kde4/share/config/kcminputrc:
> 
> This path (or parts of it) doesn't appear anywhere in the qtbase repo.

For plasma 5 the location is ~/.config/kcminputrc (same config key).
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2014-11-22 14:56:07 UTC
Simon, is this still an issue with in-tree (masked) packages?
Comment 6 Simon 2014-12-11 14:35:35 UTC
Yes, its still not working (tested with 5.4.0_rc:5::qt)
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2014-12-11 18:14:05 UTC
You can try running a simple app affected by this under strace, first with gentoo packages and then with digia binaries, and compare the two traces to see if we missed some config file. I suggest using `strace -e trace=file ...`
Comment 8 Simon 2014-12-12 12:09:40 UTC
Created attachment 391488 [details]
the two different strace files

ok I made a small test program and those are the outputs
Comment 9 Simon 2014-12-12 12:10:34 UTC
Created attachment 391490 [details]
the mini test program for scroll testing

and here is the small program to check if the setting is loaded correctly
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2014-12-12 15:47:17 UTC
(In reply to Simon from comment #8)
> Created attachment 391488 [details]
> the two different strace files
> 

How am I supposed to open this? It looks like a .tar.gz...of what? Please attach the *two* *plain-text* files, and possibly a unified diff too.
Comment 11 Simon 2014-12-12 16:38:12 UTC
Created attachment 391506 [details]
strace of the miniscroll on gentoo

sorry i accidently packaged the binary instead of the strace file for one of the straces
Comment 12 Simon 2014-12-12 16:38:34 UTC
Created attachment 391508 [details]
strace of the miniscroll on digia qt
Comment 13 Simon 2014-12-12 16:39:02 UTC
Created attachment 391510 [details, diff]
diff miniscroll.gentoo-qt5.4.0_rc.strace miniscroll.qt5.4.0.strace
Comment 14 Davide Pesavento (RETIRED) gentoo-dev 2014-12-12 17:07:16 UTC
/home/twist/.kde4/share/config/kdeglobals looks interesting but it's opened successfully by gentoo-qt too.

One difference I can see (but I'm not sure if it's related) is that your gentoo-qt installation doesn't have the ibus platforminputcontext plugin (USE=ibus in qtgui), so try to enable that...
Comment 15 Simon 2014-12-15 09:30:27 UTC
Ok, if I set the useflag ibus its working.

Perhaps the explenation of ibus for qtgui should be adjusted to be more informative about this.