page.ui Example File | Qt Installer Framework Manual

Qt Installer Framework Manual | Translation Example | page.ui Example File

# page.ui Example File

translations/packages/com.vendor.product/meta/page.ui

      <?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
       <class>Page</class>
       <widget class="QWidget" name="Page">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>400</width>
          <height>300</height>
         </rect>
        </property>
        <property name="windowTitle">
         <string>Translations Example</string>
        </property>
        <layout class="QVBoxLayout" name="verticalLayout">
         <item>
          <widget class="QLabel" name="m_pageLabel">
           <property name="frameShape">
            <enum>QFrame::Box</enum>
           </property>
           <property name="alignment">
            <set>Qt::AlignCenter</set>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QLabel" name="m_pageLabel2">
           <property name="frameShape">
            <enum>QFrame::Box</enum>
           </property>
           <property name="text">
            <string>This is some text.</string>
           </property>
           <property name="alignment">
            <set>Qt::AlignCenter</set>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
       <resources/>
       <connections/>
      </ui>