<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>ExQString</class> <widget class="QWidget" name="ExQString"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>310</width> <height>194</height> </rect> </property> <property name="windowTitle"> <string>ExQString</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="lab"> <property name="text"> <string>QString获取LineEdit文本,进制之间转换:</string> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer_2"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QLineEdit" name="editA"> <property name="text"> <string>10</string> </property> </widget> </item> <item> <widget class="QLabel" name="labMul"> <property name="text"> <string>*</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="editB"> <property name="text"> <string>6.72</string> </property> </widget> </item> <item> <widget class="QLabel" name="labEqual"> <property name="text"> <string>=</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="editC"/> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="btnResult"> <property name="text"> <string>计算</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer_3"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> </layout> </item> <item> <widget class="Line" name="line"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> <item> <layout class="QGridLayout" name="gridLayout"> <item row="3" column="0"> <widget class="QLabel" name="lab16"> <property name="text"> <string>十六进制</string> </property> </widget> </item> <item row="3" column="2"> <widget class="QLineEdit" name="edit16"/> </item> <item row="2" column="2"> <widget class="QLineEdit" name="edit10"/> </item> <item row="0" column="0"> <widget class="QLabel" name="lab2"> <property name="text"> <string>二进制</string> </property> </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="lab10"> <property name="text"> <string>十进制</string> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="lab8"> <property name="text"> <string>八进制</string> </property> </widget> </item> <item row="0" column="2"> <widget class="QLineEdit" name="edit2"/> </item> <item row="1" column="2"> <widget class="QLineEdit" name="edit8"/> </item> <item row="0" column="3"> <widget class="QPushButton" name="btn2"> <property name="text"> <string>转换</string> </property> </widget> </item> <item row="1" column="3"> <widget class="QPushButton" name="btn8"> <property name="text"> <string>转换</string> </property> </widget> </item> <item row="2" column="3"> <widget class="QPushButton" name="btn10"> <property name="text"> <string>转换</string> </property> </widget> </item> <item row="3" column="3"> <widget class="QPushButton" name="btn16"> <property name="text"> <string>转换</string> </property> </widget> </item> </layout> </item> </layout> </widget> <layoutdefault spacing="6" margin="11"/> <resources/> <connections/> </ui>