What to make the size of my interface adjustable
-
Dear All
I have set up a working UI with a fixed size. I am working with my UI WYSIWYG like with QT Designer.
I have set up a minimal UI hopefully this explains my Problem:
My UI contents have a size larger than my fullscreen resolution (here represented by QTextEdit named console with 3000x3000. I hoped putting a scroll Area(QScrollArea) between the UI Elements and the centralWidget should enable me to have scrollbars to see also right and bottom area of my empty Text Edit (or non Empty UI in my real case with 1920x1050 combined size).
Here the test.UI file:
@<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PCLViewer</class>
<widget class="QMainWindow" name="PCLViewer">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1050</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>5000</width>
<height>5000</height>
</size>
</property>
<property name="windowTitle">
<string>PCLViewer</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="palette">
<palette>
<active>
<colorrole role="ToolTipBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="ToolTipBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="ToolTipBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<widget class="QScrollArea" name="scrollArea">
<property name="geometry">
<rect>
<x>170</x>
<y>10</y>
<width>1711</width>
<height>1011</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>1709</width>
<height>1009</height>
</rect>
</property>
<widget class="QTextEdit" name="console">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>3000</width>
<height>3000</height>
</rect>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>5</number>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</widget>
</widget>
</widget>
</widget>
<resources/>
<connections/>
</ui>@
Should be a simple fix hopefully.