View Single Post
Posts: 401 | Thanked: 724 times | Joined on May 2010 @ Italy
#30
Originally Posted by aspidites View Post
Why do you have to restart just to set the orientation? I implement the same kind of setting and it takes affect immediately. If you haven't already, take a look at QSettings. I just called a method after I changed the orientation setting which set the appropriate attribute accordingly.
Primarily I do it in this way to try to manage AutoOrientation well, but it doesn't work anyway. And then i forgotten to move the function

However.....did you use (for example) this or there are others functions?
Code:
w.setAttribute(Qt::WA_Maemo5AutoOrientation, true);