Thread
:
Handling Screen Orientation with Qt
View Single Post
marxian
2011-06-23 , 22:24
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#
2
The way I did it is to connect a slot to the QApplication::desktop()->resized() signal. In this slot, you can reorder the widgets depending on whether the application is in portrait mode (height > width) or landscape mode (width > height). You can reorder the widgets by calling the resize() or setGeometry() methods as appropriate (use resize() where possible).
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.'
- J K Galbraith
My website
GitHub
Quote & Reply
|
The Following 2 Users Say Thank You to marxian For This Useful Post:
mtrower2
,
Tiboric
marxian
View Public Profile
Send a private message to marxian
Find all posts by marxian