Put the mainform QWidget inside of a QMainWindow box, so things work out a bit better.

HEAD
Simon Quigley 6 years ago
parent 9501ddc356
commit c725146010

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>MainWindow</class> <class>MainWindow</class>
<widget class="QWidget" name="mainform"> <widget class="QMainWindow" name="MainWindow">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@ -25,401 +25,403 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <widget class="QWidget" name="mainform">
<item row="6" column="0"> <layout class="QGridLayout" name="gridLayout">
<layout class="QVBoxLayout" name="specs"> <item row="6" column="0">
<item> <layout class="QVBoxLayout" name="specs">
<layout class="QHBoxLayout" name="graphics"> <item>
<item> <layout class="QHBoxLayout" name="graphics">
<widget class="QLabel" name="graphicsicon"> <item>
<property name="minimumSize"> <widget class="QLabel" name="graphicsicon">
<size> <property name="minimumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="maximumSize"> </property>
<size> <property name="maximumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="text"> </property>
<string>&lt;img src=&quot;:/images/graphics.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string> <property name="text">
</property> <string>&lt;img src=&quot;:/images/graphics.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="graphicsdetails"> <item>
<property name="font"> <widget class="QLabel" name="graphicsdetails">
<font> <property name="font">
<family>Oxygen-Sans</family> <font>
<pointsize>12</pointsize> <family>Oxygen-Sans</family>
</font> <pointsize>12</pointsize>
</property> </font>
<property name="text"> </property>
<string>Quad-Core Intel Something or Other CPU</string> <property name="text">
</property> <string>Quad-Core Intel Something or Other CPU</string>
</widget> </property>
</item> </widget>
<item> </item>
<spacer name="graphicsspacer"> <item>
<property name="orientation"> <spacer name="graphicsspacer">
<enum>Qt::Horizontal</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="sizeHint" stdset="0">
<width>40</width> <size>
<height>20</height> <width>40</width>
</size> <height>20</height>
</property> </size>
</spacer> </property>
</item> </spacer>
</layout> </item>
</item> </layout>
<item> </item>
<layout class="QHBoxLayout" name="memory"> <item>
<item> <layout class="QHBoxLayout" name="memory">
<widget class="QLabel" name="memoryicon"> <item>
<property name="minimumSize"> <widget class="QLabel" name="memoryicon">
<size> <property name="minimumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="maximumSize"> </property>
<size> <property name="maximumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="text"> </property>
<string>&lt;img src=&quot;:/images/memory.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string> <property name="text">
</property> <string>&lt;img src=&quot;:/images/memory.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="memorydetails"> <item>
<property name="font"> <widget class="QLabel" name="memorydetails">
<font> <property name="font">
<family>Oxygen-Sans</family> <font>
<pointsize>12</pointsize> <family>Oxygen-Sans</family>
</font> <pointsize>12</pointsize>
</property> </font>
<property name="text"> </property>
<string>Quad-Core Intel Something or Other CPU</string> <property name="text">
</property> <string>Quad-Core Intel Something or Other CPU</string>
</widget> </property>
</item> </widget>
<item> </item>
<spacer name="memoryspacer"> <item>
<property name="orientation"> <spacer name="memoryspacer">
<enum>Qt::Horizontal</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="sizeHint" stdset="0">
<width>40</width> <size>
<height>20</height> <width>40</width>
</size> <height>20</height>
</property> </size>
</spacer> </property>
</item> </spacer>
</layout> </item>
</item> </layout>
<item> </item>
<layout class="QHBoxLayout" name="cpu"> <item>
<item> <layout class="QHBoxLayout" name="cpu">
<widget class="QLabel" name="cpuicon"> <item>
<property name="minimumSize"> <widget class="QLabel" name="cpuicon">
<size> <property name="minimumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="maximumSize"> </property>
<size> <property name="maximumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="text"> </property>
<string>&lt;img src=&quot;:/images/cpu.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string> <property name="text">
</property> <string>&lt;img src=&quot;:/images/cpu.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="cpudetails"> <item>
<property name="font"> <widget class="QLabel" name="cpudetails">
<font> <property name="font">
<family>Oxygen-Sans</family> <font>
<pointsize>12</pointsize> <family>Oxygen-Sans</family>
</font> <pointsize>12</pointsize>
</property> </font>
<property name="text"> </property>
<string>Quad-Core Intel Something or Other CPU</string> <property name="text">
</property> <string>Quad-Core Intel Something or Other CPU</string>
</widget> </property>
</item> </widget>
<item> </item>
<spacer name="cpuspecspacer"> <item>
<property name="orientation"> <spacer name="cpuspecspacer">
<enum>Qt::Horizontal</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="sizeHint" stdset="0">
<width>40</width> <size>
<height>20</height> <width>40</width>
</size> <height>20</height>
</property> </size>
</spacer> </property>
</item> </spacer>
</layout> </item>
</item> </layout>
<item> </item>
<layout class="QHBoxLayout" name="storage"> <item>
<item> <layout class="QHBoxLayout" name="storage">
<widget class="QLabel" name="storageicon"> <item>
<property name="minimumSize"> <widget class="QLabel" name="storageicon">
<size> <property name="minimumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="maximumSize"> </property>
<size> <property name="maximumSize">
<width>32</width> <size>
<height>32</height> <width>32</width>
</size> <height>32</height>
</property> </size>
<property name="text"> </property>
<string>&lt;img src=&quot;:/images/storage.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string> <property name="text">
</property> <string>&lt;img src=&quot;:/images/storage.png&quot; height=&quot;32&quot; width=&quot;32&quot; /&gt;</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="storagedetails"> <item>
<property name="font"> <widget class="QLabel" name="storagedetails">
<font> <property name="font">
<family>Oxygen-Sans</family> <font>
<pointsize>12</pointsize> <family>Oxygen-Sans</family>
</font> <pointsize>12</pointsize>
</property> </font>
<property name="text"> </property>
<string>Quad-Core Intel Something or Other CPU</string> <property name="text">
</property> <string>Quad-Core Intel Something or Other CPU</string>
</widget> </property>
</item> </widget>
<item> </item>
<spacer name="storagespacer"> <item>
<property name="orientation"> <spacer name="storagespacer">
<enum>Qt::Horizontal</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="sizeHint" stdset="0">
<width>40</width> <size>
<height>20</height> <width>40</width>
</size> <height>20</height>
</property> </size>
</spacer> </property>
</item> </spacer>
</layout> </item>
</item> </layout>
</layout> </item>
</item> </layout>
<item row="0" column="0"> </item>
<spacer name="verticalSpacer2"> <item row="0" column="0">
<property name="orientation"> <spacer name="verticalSpacer2">
<enum>Qt::Vertical</enum> <property name="orientation">
</property> <enum>Qt::Vertical</enum>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="sizeHint" stdset="0">
<width>20</width> <size>
<height>40</height> <width>20</width>
</size> <height>40</height>
</property> </size>
</spacer> </property>
</item> </spacer>
<item row="5" column="0"> </item>
<spacer name="verticalSpacer3"> <item row="5" column="0">
<property name="orientation"> <spacer name="verticalSpacer3">
<enum>Qt::Vertical</enum> <property name="orientation">
</property> <enum>Qt::Vertical</enum>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="sizeHint" stdset="0">
<width>20</width> <size>
<height>40</height> <width>20</width>
</size> <height>40</height>
</property> </size>
</spacer> </property>
</item> </spacer>
<item row="1" column="0" rowspan="4" colspan="4"> </item>
<layout class="QGridLayout" name="itemcontainer"> <item row="1" column="0" rowspan="4" colspan="4">
<item row="0" column="0"> <layout class="QGridLayout" name="itemcontainer">
<layout class="QHBoxLayout" name="logoandtextlayout"> <item row="0" column="0">
<item> <layout class="QHBoxLayout" name="logoandtextlayout">
<widget class="QLabel" name="label"> <item>
<property name="minimumSize"> <widget class="QLabel" name="label">
<size> <property name="minimumSize">
<width>64</width> <size>
<height>64</height> <width>64</width>
</size> <height>64</height>
</property> </size>
<property name="maximumSize"> </property>
<size> <property name="maximumSize">
<width>64</width> <size>
<height>64</height> <width>64</width>
</size> <height>64</height>
</property> </size>
<property name="text"> </property>
<string>&lt;img src=&quot;:/images/Lubuntu.png&quot; height=&quot;64&quot; width=&quot;64&quot; /&gt;</string> <property name="text">
</property> <string>&lt;img src=&quot;:/images/Lubuntu.png&quot; height=&quot;64&quot; width=&quot;64&quot; /&gt;</string>
</widget> </property>
</item> </widget>
<item> </item>
<layout class="QVBoxLayout" name="Lubuntudetails"> <item>
<item> <layout class="QVBoxLayout" name="Lubuntudetails">
<widget class="QLabel" name="versiondetails"> <item>
<property name="minimumSize"> <widget class="QLabel" name="versiondetails">
<size> <property name="minimumSize">
<width>0</width> <size>
<height>0</height> <width>0</width>
</size> <height>0</height>
</property> </size>
<property name="font"> </property>
<font> <property name="font">
<pointsize>26</pointsize> <font>
</font> <pointsize>26</pointsize>
</property> </font>
<property name="text"> </property>
<string>Lubuntu VERSION</string> <property name="text">
</property> <string>Lubuntu VERSION</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="smalldetails"> <item>
<property name="text"> <widget class="QLabel" name="smalldetails">
<string>OS KERNEL, ARCH</string> <property name="text">
</property> <string>OS KERNEL, ARCH</string>
</widget> </property>
</item> </widget>
</layout> </item>
</item> </layout>
</layout> </item>
</item> </layout>
<item row="0" column="1"> </item>
<widget class="QLabel" name="links"> <item row="0" column="1">
<property name="text"> <widget class="QLabel" name="links">
<string>&lt;span style=&quot;text-decoration: underline; color:#0000ff;&quot; align=&quot;right&quot;&gt; <property name="text">
<string>&lt;span style=&quot;text-decoration: underline; color:#0000ff;&quot; align=&quot;right&quot;&gt;
&lt;p&gt;&lt;a href=&quot;http://lubuntu.me/&quot;&gt;Website&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://lubuntu.me/&quot;&gt;Website&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://lubuntu.me/links/&quot;&gt;Contact us&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://lubuntu.me/links/&quot;&gt;Contact us&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://phab.lubuntu.me/w/contributor-guide/&quot;&gt;Contribute&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://phab.lubuntu.me/w/contributor-guide/&quot;&gt;Contribute&lt;/a&gt;&lt;/p&gt;
&lt;/span&gt;</string> &lt;/span&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="11" column="0" colspan="4"> <item row="11" column="0" colspan="4">
<layout class="QHBoxLayout" name="buttonslayout"> <layout class="QHBoxLayout" name="buttonslayout">
<item> <item>
<widget class="QPushButton" name="translation"> <widget class="QPushButton" name="translation">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>Translation</string> <string>Translation</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="license"> <widget class="QPushButton" name="license">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>License</string> <string>License</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="buttonspacer"> <spacer name="buttonspacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QPushButton" name="close"> <widget class="QPushButton" name="close">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>30</height> <height>30</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>Close</string> <string>Close</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="9" column="0"> <item row="9" column="0">
<spacer name="verticalSpacer1"> <spacer name="verticalSpacer1">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="10" column="0"> <item row="10" column="0">
<widget class="Line" name="line"> <widget class="Line" name="line">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>800</width> <width>800</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</widget> </widget>
<resources> <resources>
<include location="main.qrc"/> <include location="main.qrc"/>

Loading…
Cancel
Save