Qt 5.9 | Qt UI Tools | Text Finder Example | textfinder.ui Example File

Qt 5.9.2 Reference Documentation

# textfinder.ui Example File

textfinder/forms/textfinder.ui

      <?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
       <class>Form</class>
       <widget class="QWidget" name="Form">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>378</width>
          <height>158</height>
         </rect>
        </property>
        <property name="windowTitle">
         <string>Find Text</string>
        </property>
        <layout class="QVBoxLayout">
         <property name="spacing">
          <number>6</number>
         </property>
         <property name="leftMargin">
          <number>9</number>
         </property>
         <property name="topMargin">
          <number>9</number>
         </property>
         <property name="rightMargin">
          <number>9</number>
         </property>
         <property name="bottomMargin">
          <number>9</number>
         </property>
         <item>
          <layout class="QGridLayout">
           <property name="leftMargin">
            <number>0</number>
           </property>
           <property name="topMargin">
            <number>0</number>
           </property>
           <property name="rightMargin">
            <number>0</number>
           </property>
           <property name="bottomMargin">
            <number>0</number>
           </property>
           <property name="spacing">
            <number>6</number>
           </property>
           <item row="0" column="1">
            <widget class="QLineEdit" name="lineEdit"/>
           </item>
           <item row="0" column="0">
            <widget class="QLabel" name="searchLabel">
             <property name="text">
              <string>&amp;Keyword:</string>
             </property>
             <property name="buddy">
              <cstring>lineEdit</cstring>
             </property>
            </widget>
           </item>
           <item row="0" column="2">
            <widget class="QPushButton" name="findButton">
             <property name="text">
              <string>&amp;Find</string>
             </property>
            </widget>
           </item>
          </layout>
         </item>
         <item>
          <widget class="QTextEdit" name="textEdit"/>
         </item>
        </layout>
       </widget>
       <resources/>
       <connections>
        <connection>
         <sender>lineEdit</sender>
         <signal>returnPressed()</signal>
         <receiver>findButton</receiver>
         <slot>animateClick()</slot>
         <hints>
          <hint type="sourcelabel">
           <x>261</x>
           <y>17</y>
          </hint>
          <hint type="destinationlabel">
           <x>320</x>
           <y>17</y>
          </hint>
         </hints>
        </connection>
       </connections>
      </ui>