sendframebox.ui Example File

can/sendframebox.ui
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>SendFrameBox</class>
 <widget class="QGroupBox" name="SendFrameBox">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>485</width>
    <height>206</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Dialog</string>
  </property>
  <property name="title">
   <string/>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout_4">
   <item>
    <widget class="QGroupBox" name="frameTypeBox">
     <property name="title">
      <string>Frame Type</string>
     </property>
     <property name="checkable">
      <bool>false</bool>
     </property>
     <layout class="QHBoxLayout" name="horizontalLayout">
      <property name="topMargin">
       <number>0</number>
      </property>
      <property name="bottomMargin">
       <number>0</number>
      </property>
      <item>
       <widget class="QRadioButton" name="dataFrame">
        <property name="toolTip">
         <string>Sends a CAN data frame.</string>
        </property>
        <property name="text">
         <string>D&amp;ata Frame</string>
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="remoteFrame">
        <property name="toolTip">
         <string>Sends a CAN remote request frame.</string>
        </property>
        <property name="text">
         <string>Re&amp;mote Request Frame</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="errorFrame">
        <property name="toolTip">
         <string>Sends an error frame.</string>
        </property>
        <property name="text">
         <string>&amp;Error Frame</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QGroupBox" name="frameOptionsBox">
     <property name="title">
      <string>Frame Options</string>
     </property>
     <layout class="QHBoxLayout" name="horizontalLayout_2">
      <property name="topMargin">
       <number>0</number>
      </property>
      <property name="bottomMargin">
       <number>0</number>
      </property>
      <item>
       <widget class="QCheckBox" name="extendedFormatBox">
        <property name="toolTip">
         <string>Allows extended frames with 29 bit identifier.</string>
        </property>
        <property name="text">
         <string>E&amp;xtended Format</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="flexibleDataRateBox">
        <property name="toolTip">
         <string>Allows up to 64 byte payload data.</string>
        </property>
        <property name="text">
         <string>&amp;Flexible Data-Rate</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QCheckBox" name="bitrateSwitchBox">
        <property name="enabled">
         <bool>false</bool>
        </property>
        <property name="toolTip">
         <string>Sends payload at higher data rate.</string>
        </property>
        <property name="text">
         <string>&amp;Bitrate Switch</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <layout class="QHBoxLayout" name="horizontalLayout_3">
     <item>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <widget class="QLabel" name="frameIdLabel">
         <property name="text">
          <string>Frame &amp;ID (hex)</string>
         </property>
         <property name="buddy">
          <cstring>frameIdEdit</cstring>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QLineEdit" name="frameIdEdit">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
           <horstretch>1</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="placeholderText">
          <string>123</string>
         </property>
         <property name="clearButtonEnabled">
          <bool>true</bool>
         </property>
        </widget>
       </item>
      </layout>
     </item>
     <item>
      <layout class="QVBoxLayout" name="verticalLayout_2">
       <item>
        <widget class="QLabel" name="payloadLabel">
         <property name="text">
          <string>&amp;Payload (hex)</string>
         </property>
         <property name="buddy">
          <cstring>payloadEdit</cstring>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QLineEdit" name="payloadEdit">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
           <horstretch>2</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="placeholderText">
          <string>12 34 AB CE</string>
         </property>
         <property name="clearButtonEnabled">
          <bool>true</bool>
         </property>
        </widget>
       </item>
      </layout>
     </item>
     <item>
      <layout class="QVBoxLayout" name="verticalLayout_3">
       <item>
        <spacer name="verticalSpacer">
         <property name="orientation">
          <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>20</width>
           <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
       <item>
        <widget class="QPushButton" name="sendButton">
         <property name="text">
          <string>&amp;Send</string>
         </property>
        </widget>
       </item>
      </layout>
     </item>
    </layout>
   </item>
  </layout>
 </widget>
 <resources/>
 <connections/>
</ui>

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.