mainwindow.ui Example File
can/mainwindow.ui
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>551</width>
<height>481</height>
</rect>
</property>
<property name="windowTitle">
<string>CAN Example</string>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QGroupBox" name="sendMessagesBox">
<property name="title">
<string>Send CAN message</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>&ID (hex)</string>
</property>
<property name="buddy">
<cstring>idEdit</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="idEdit">
<property name="placeholderText">
<string>123</string>
</property>
</widget>
</item>
<item row="0" column="2" rowspan="4">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Frame Type</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QRadioButton" name="dataFrame">
<property name="text">
<string>D&ata</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="remoteFrame">
<property name="text">
<string>Re&mote Request</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="errorFrame">
<property name="text">
<string>&Error</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="3">
<widget class="QCheckBox" name="fdBox">
<property name="text">
<string>&Flexible Data-Rate
(64 byte payload)</string>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QCheckBox" name="effBox">
<property name="toolTip">
<string>Allow extended frames with 29 bit identifier.
Otherwise, the standard format with 11 bit idenfier is used.</string>
</property>
<property name="text">
<string>E&xtended Frame
(29 bit identifier)</string>
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QPushButton" name="sendButton">
<property name="text">
<string>&Send</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="lineEdit">
<property name="placeholderText">
<string>12 34 AB CE</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>&Data (hex)</string>
</property>
<property name="buddy">
<cstring>lineEdit</cstring>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QCheckBox" name="bitrateSwitchBox">
<property name="text">
<string>&Bitrate Switch
(Higher data rate)</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="receivedMessagesBox">
<property name="title">
<string>Received CAN messages</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<family>Courier</family>
<kerning>false</kerning>
</font>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="text">
<string>Timestamp Flags CAN-ID DLC Data</string>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="receivedMessagesEdit">
<property name="font">
<font>
<family>Courier</family>
<kerning>false</kerning>
</font>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="undoRedoEnabled">
<bool>false</bool>
</property>
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>551</width>
<height>19</height>
</rect>
</property>
<widget class="QMenu" name="menuCalls">
<property name="title">
<string>&Calls</string>
</property>
<addaction name="actionConnect"/>
<addaction name="actionDisconnect"/>
<addaction name="separator"/>
<addaction name="actionClearLog"/>
<addaction name="separator"/>
<addaction name="actionQuit"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>&Help</string>
</property>
<addaction name="actionPluginDocumentation"/>
<addaction name="actionAboutQt"/>
</widget>
<addaction name="menuCalls"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionConnect"/>
<addaction name="actionDisconnect"/>
<addaction name="separator"/>
<addaction name="actionClearLog"/>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="actionConnect">
<property name="icon">
<iconset resource="can.qrc">
<normaloff>:/images/connect.png</normaloff>:/images/connect.png</iconset>
</property>
<property name="text">
<string>&Connect</string>
</property>
</action>
<action name="actionDisconnect">
<property name="icon">
<iconset resource="can.qrc">
<normaloff>:/images/disconnect.png</normaloff>:/images/disconnect.png</iconset>
</property>
<property name="text">
<string>&Disconnect</string>
</property>
</action>
<action name="actionQuit">
<property name="icon">
<iconset resource="can.qrc">
<normaloff>:/images/application-exit.png</normaloff>:/images/application-exit.png</iconset>
</property>
<property name="text">
<string>&Quit</string>
</property>
</action>
<action name="actionAboutQt">
<property name="text">
<string>&About Qt</string>
</property>
</action>
<action name="actionClearLog">
<property name="icon">
<iconset resource="can.qrc">
<normaloff>:/images/clear.png</normaloff>:/images/clear.png</iconset>
</property>
<property name="text">
<string>Clear &Log</string>
</property>
</action>
<action name="actionPluginDocumentation">
<property name="text">
<string>Plugin Documentation</string>
</property>
<property name="toolTip">
<string>Open plugin documentation in Webbrowser</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>
<include location="can.qrc"/>
</resources>
<connections/>
</ui>