Read mouse wheel scroll direction on macOS
Unsolved
General and Desktop
-
I'm trying to detect whether the scroll direction is set to "natural" on macOS. I had assumed that the inverted attribute from the QWheelEvent would provide this, but it is always returning false. Is there a way to read this setting at run-time? It can be read through the macOS defaults system (
defaults read NSGlobalDomain com.apple.swipescrolldirection
), but I'm not sure how to access this through Qt. -
Hi,
You can use Objective-C alongside C++. Take a look at the QtMacExtras module for example.