![]() |
2010-06-11
, 12:18
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#2
|
void MyWindow::resizeEvent(QResizeEvent *event) { QMainWindow::resizeEvent(event); if (width() > height()) { // set your UI to landscape } else { // set your UI to portrait } }
![]() |
2010-06-12
, 08:22
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#3
|
I mean for some triggers, the 'Events' methodology is being used, while for other kinds of triggers, 'Signals and Slots' methodology is being used ... Isn't this confusing ?