QScreen::primaryOrientation does not work correctly

Bug #1520670 reported by Chris Coulson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtubuntu (Ubuntu)
New
Undecided
Unassigned

Bug Description

Oxide relies on the combination of QScreen::orientation() and QScreen::primaryOrientation() in order to determine the rotation angle of the device, which is used in Blink and also for correctly rotating the camera preview when the application is rotated.

However, the value returned from QScreen::primaryOrientation() also changes when the device is rotated, which I believe is unexpected. Qt calculates this based on the screen geometry, which means this is probably caused by qtubuntu swapping the width / height around when transitioning from portrait to landscape.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

This might not be a bug - the Qt documentation says that the behaviour of QScreen::primaryOrientation is platform dependent. Oxide has since switched to using QScreen::nativeOrientation, which seems to provide what we want.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.