I am attempting to use Qt Designer exclusively for the user interface. Everything works as expected in portrait mode (except for scrolling) but I have been unable to properly implement landscape mode. Testing is on an N8 which automatically switches as the phone is rotated. When rotating to landscape, the bottom of the screen is lost because the scroll bar was not implemented properly. Assistance will be appreciated! Thanks.
The automatically generated code is:
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
and the ui file is:
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>360</width>
<height>640</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget">
<widget class="QWidget" name="gridLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>341</width>
<height>621</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout"/>
</widget>
<widget class="QScrollArea" name="scrollArea">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>361</width>
<height>641</height>
</rect>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>359</width>
<height>639</height>
</rect>
</property>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>70</x>
<y>20</y>
<width>201</width>
<height>111</height>
</rect>
</property>
<property name="text">
<string>PushButton</string>
</property>
</widget>
etc



