dynamic layout + start maximized

This commit is contained in:
Paul S 2021-07-01 12:22:26 +02:00
parent 48f8dc221a
commit de44023116
4 changed files with 290 additions and 328 deletions

View file

@ -13,271 +13,219 @@
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QGroupBox" name="gbResults">
<property name="geometry">
<rect>
<x>20</x>
<y>440</y>
<width>541</width>
<height>121</height>
</rect>
</property>
<property name="title">
<string>Ergebnis</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<widget class="QLabel" name="lblVol_Garage">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>140</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Volumen der Garage:</string>
</property>
</widget>
<widget class="QLabel" name="lblVol_Stuff">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>140</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Volumen der Gegenstände:</string>
</property>
</widget>
<widget class="QLabel" name="lblVol_Free">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>140</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Freier Raum in der Garage:</string>
</property>
</widget>
<widget class="QLineEdit" name="efVol_Garage">
<property name="geometry">
<rect>
<x>174</x>
<y>20</y>
<width>113</width>
<height>20</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="efVol_Stuff">
<property name="geometry">
<rect>
<x>174</x>
<y>40</y>
<width>113</width>
<height>20</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="efVol_Free">
<property name="geometry">
<rect>
<x>174</x>
<y>60</y>
<width>113</width>
<height>20</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="lblM3">
<property name="geometry">
<rect>
<x>294</x>
<y>20</y>
<width>47</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>m³</string>
</property>
</widget>
<widget class="QLabel" name="lblM3_2">
<property name="geometry">
<rect>
<x>294</x>
<y>40</y>
<width>47</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>m³</string>
</property>
</widget>
<widget class="QLabel" name="lblM3_3">
<property name="geometry">
<rect>
<x>294</x>
<y>60</y>
<width>47</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>m³</string>
</property>
</widget>
<widget class="QLineEdit" name="efWeight">
<property name="geometry">
<rect>
<x>174</x>
<y>80</y>
<width>113</width>
<height>20</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="lblM3_4">
<property name="geometry">
<rect>
<x>294</x>
<y>80</y>
<width>47</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>kg</string>
</property>
</widget>
<widget class="QLabel" name="lblWeight">
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>140</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Gesamtgewicht:</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="gbStuff">
<property name="geometry">
<rect>
<x>20</x>
<y>120</y>
<width>561</width>
<height>301</height>
</rect>
</property>
<property name="title">
<string>Dimensionen der zu verstauenden Gegenstände</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout"/>
</widget>
<widget class="QGroupBox" name="gbGarage">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>561</width>
<height>91</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>91</height>
</size>
</property>
<property name="title">
<string>Dimension der Garage</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<widget class="QTableWidget" name="tableGarage">
<property name="geometry">
<rect>
<x>10</x>
<y>23</y>
<width>351</width>
<height>58</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>58</height>
</size>
</property>
<row>
<property name="text">
<string>Garage</string>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QGroupBox" name="gbGarage">
<property name="minimumSize">
<size>
<width>0</width>
<height>91</height>
</size>
</property>
</row>
<column>
<property name="text">
<string>Länge [m]</string>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>91</height>
</size>
</property>
</column>
<column>
<property name="text">
<string>Breite [m]</string>
<property name="title">
<string>Dimension der Garage</string>
</property>
</column>
<column>
<property name="text">
<string>Höhe [m]</string>
<property name="flat">
<bool>true</bool>
</property>
</column>
</widget>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QTableWidget" name="tableGarage">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>58</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>58</height>
</size>
</property>
<row>
<property name="text">
<string>Garage</string>
</property>
</row>
<column>
<property name="text">
<string>Länge [m]</string>
</property>
</column>
<column>
<property name="text">
<string>Breite [m]</string>
</property>
</column>
<column>
<property name="text">
<string>Höhe [m]</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="gbStuff">
<property name="title">
<string>Dimensionen der zu verstauenden Gegenstände</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout"/>
</widget>
</item>
<item>
<widget class="QGroupBox" name="gbResults">
<property name="title">
<string>Ergebnis</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="3">
<widget class="QLabel" name="lblM3_3">
<property name="text">
<string>m³</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="lblVol_Garage">
<property name="text">
<string>Volumen der Garage:</string>
</property>
</widget>
</item>
<item row="0" column="4">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="3">
<widget class="QLabel" name="lblM3_4">
<property name="text">
<string>kg</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLabel" name="lblM3_2">
<property name="text">
<string>m³</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="lblWeight">
<property name="text">
<string>Gesamtgewicht:</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLabel" name="lblM3">
<property name="text">
<string>m³</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLineEdit" name="efVol_Free">
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLineEdit" name="efWeight">
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="lblVol_Stuff">
<property name="text">
<string>Volumen der Gegenstände:</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLineEdit" name="efVol_Garage">
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLineEdit" name="efVol_Stuff">
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="lblVol_Free">
<property name="text">
<string>Freier Raum in der Garage:</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>tableGarage</tabstop>