Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Mouser Cursor Rotation
michaelL last edited by
i want to rotate the mouse cursor to 180 and i am using Qt5.
I found this:
QT_QPA_EGLFS_ROTATION - Specifies the rotation applied to software-rendered content in QWidget-based applications. Supported values are 180, 90, and -90. This does not apply to OpenGL-based windows, including Qt Quick. Qt Quick applications can apply transformations in their QML scene instead. The standard eglfs mouse cursor always takes the value into account, with appropriately positioned and rotated pointer image, regardless of the application type. The special cursor implementations, such as the KMS/DRM backend's hardware cursor, may not support rotation.
So i tryied "export QT_QPA_EGLFS_ROTATION=180" before starting my application but that didnt turn the mouse pointer to 180°.
Here is how i start my app:
./myapplication --platform eglfs
I am running QML but on the text its says that it doenst matter for the mouse cursor which application he is on. It will turn normally.