connectdialog.ui Example File

can/connectdialog.ui

  <?xml version="1.0" encoding="UTF-8"?>
  <ui version="4.0">
   <class>ConnectDialog</class>
   <widget class="QDialog" name="ConnectDialog">
    <property name="geometry">
     <rect>
      <x>0</x>
      <y>0</y>
      <width>441</width>
      <height>281</height>
     </rect>
    </property>
    <property name="windowTitle">
     <string>Connect</string>
    </property>
    <layout class="QGridLayout" name="gridLayout_2">
     <item row="4" column="0" colspan="2">
      <layout class="QHBoxLayout" name="horizontalLayout">
       <item>
        <spacer name="horizontalSpacer">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>96</width>
           <height>20</height>
          </size>
         </property>
        </spacer>
       </item>
       <item>
        <widget class="QPushButton" name="cancelButton">
         <property name="text">
          <string>Cancel</string>
         </property>
         <property name="autoDefault">
          <bool>false</bool>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QPushButton" name="okButton">
         <property name="text">
          <string>OK</string>
         </property>
         <property name="autoDefault">
          <bool>false</bool>
         </property>
         <property name="default">
          <bool>true</bool>
         </property>
        </widget>
       </item>
      </layout>
     </item>
     <item row="0" column="0">
      <widget class="QGroupBox" name="selectBackendBox">
       <property name="title">
        <string>Select CAN backend</string>
       </property>
       <layout class="QGridLayout" name="gridLayout">
        <item row="0" column="0">
         <widget class="QComboBox" name="backendListBox"/>
        </item>
       </layout>
      </widget>
     </item>
     <item row="0" column="1" rowspan="4">
      <widget class="QGroupBox" name="configurationBox">
       <property name="enabled">
        <bool>false</bool>
       </property>
       <property name="title">
        <string>Specify Configuration</string>
       </property>
       <layout class="QGridLayout" name="gridLayout_4">
        <item row="0" column="0">
         <widget class="QLabel" name="rawFilterLabel">
          <property name="text">
           <string>RAW Filter</string>
          </property>
         </widget>
        </item>
        <item row="0" column="1">
         <widget class="QLineEdit" name="rawFilterEdit">
          <property name="alignment">
           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
          </property>
         </widget>
        </item>
        <item row="1" column="0">
         <widget class="QLabel" name="errorFilterLabel">
          <property name="text">
           <string>Error Filter</string>
          </property>
         </widget>
        </item>
        <item row="1" column="1">
         <widget class="QLineEdit" name="errorFilterEdit">
          <property name="alignment">
           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
          </property>
          <property name="placeholderText">
           <string>FrameError bits</string>
          </property>
         </widget>
        </item>
        <item row="2" column="0">
         <widget class="QLabel" name="loopbackLabel">
          <property name="text">
           <string>Loopback</string>
          </property>
         </widget>
        </item>
        <item row="2" column="1">
         <widget class="QComboBox" name="loopbackBox"/>
        </item>
        <item row="3" column="0">
         <widget class="QLabel" name="receiveOwnLabel">
          <property name="text">
           <string>Receive Own</string>
          </property>
         </widget>
        </item>
        <item row="3" column="1">
         <widget class="QComboBox" name="receiveOwnBox"/>
        </item>
        <item row="4" column="0">
         <widget class="QLabel" name="speedLabel">
          <property name="text">
           <string>Speed</string>
          </property>
         </widget>
        </item>
        <item row="4" column="1">
         <widget class="QComboBox" name="speedBox"/>
        </item>
        <item row="5" column="0">
         <widget class="QLabel" name="canFdLabel">
          <property name="text">
           <string>CAN FD</string>
          </property>
         </widget>
        </item>
        <item row="5" column="1">
         <widget class="QComboBox" name="canFdBox"/>
        </item>
       </layout>
      </widget>
     </item>
     <item row="1" column="0">
      <widget class="QGroupBox" name="specifyInterfaceNameBox">
       <property name="title">
        <string>Specify CAN interface name</string>
       </property>
       <layout class="QGridLayout" name="gridLayout_3">
        <item row="0" column="0">
         <widget class="QLineEdit" name="interfaceNameEdit"/>
        </item>
       </layout>
      </widget>
     </item>
     <item row="3" column="0">
      <widget class="QCheckBox" name="useConfigurationBox">
       <property name="text">
        <string>Custom configuration</string>
       </property>
      </widget>
     </item>
    </layout>
   </widget>
   <resources/>
   <connections/>
  </ui>