1298 lines
39 KiB
XML
1298 lines
39 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>TestPrintWidget</class>
|
|
<widget class="QWidget" name="TestPrintWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>549</height>
|
|
</rect>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>800</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Testprint</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QWidget{
|
|
font-size: 16px;
|
|
}
|
|
</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="mainLayout">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="contentsMargins" stdset="0">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</rect>
|
|
</property>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="middleLayout">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="contentsMargins" stdset="0">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</rect>
|
|
</property>
|
|
<item>
|
|
<widget class="QWidget" name="leftPanel" native="true">
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color:#C4C5C9;</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="m_vLayout">
|
|
<property name="spacing">
|
|
<number>6</number>
|
|
</property>
|
|
<property name="contentsMargins" stdset="0">
|
|
<rect>
|
|
<x>8</x>
|
|
<y>8</y>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</rect>
|
|
</property>
|
|
<item>
|
|
<widget class="QToolButton" name="btnA">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>150</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="layoutDirection">
|
|
<enum>Qt::LeftToRight</enum>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QToolButton {
|
|
background-color: #efefef;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QToolButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QToolButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>文字</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/icon_text.png</normaloff>:/image/icon_text.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>125</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="autoExclusive">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="btnBarcode">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QToolButton {
|
|
background-color: #efefef;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QToolButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QToolButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>条形码</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/icon_code.png</normaloff>:/image/icon_code.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>125</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="btn3D">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QToolButton {
|
|
background-color: rgb(239, 239, 239);
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QToolButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QToolButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>图标</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/icon_shape.png</normaloff>:/image/icon_shape.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>125</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="btnDate">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QToolButton {
|
|
background-color: rgb(239, 239, 239);
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QToolButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QToolButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>日期时间</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/icon_time.png</normaloff>:/image/icon_time.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>125</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="btnNum">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QToolButton {
|
|
background-color: rgb(239, 239, 239);
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QToolButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QToolButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>计数器</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/icon_num.png</normaloff>:/image/icon_num.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>125</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="btnArrow">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QToolButton {
|
|
background-color: rgb(239, 239, 239);
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QToolButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QToolButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>轮班</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/icon_clock.png</normaloff>:/image/icon_clock.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>125</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<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>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="rightLayout">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="contentsMargins" stdset="0">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</rect>
|
|
</property>
|
|
<item>
|
|
<widget class="QFrame" name="topToolBarFrame">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>86</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>background-color:#828E9E;</string>
|
|
</property>
|
|
<property name="fixedHeight" stdset="0">
|
|
<number>90</number>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QPushButton" name="btnSave">
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF);
|
|
border: 1px solid #a0a0a0;
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
min-width: 90px;
|
|
min-height: 50px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #c0c0c0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>保存</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/disk.svg</normaloff>:/image/disk.svg</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>60</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnSaveAs">
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF);
|
|
border: 1px solid #a0a0a0;
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
min-width: 90px;
|
|
min-height: 50px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #c0c0c0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>另存为</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/saveAs.png</normaloff>:/image/saveAs.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>62</width>
|
|
<height>62</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnListConfig">
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF);
|
|
border: 1px solid #a0a0a0;
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
min-width: 90px;
|
|
min-height: 50px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #c0c0c0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>打印设置</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/set1.png</normaloff>:/image/set1.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>60</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnItemConfig">
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF);
|
|
border: 1px solid #a0a0a0;
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
min-width: 90px;
|
|
min-height: 50px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #c0c0c0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>图元设置</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/set2.png</normaloff>:/image/set2.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>60</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QFrame" name="topToolFrame">
|
|
<property name="styleSheet">
|
|
<string>background-color:#C4C5C9;</string>
|
|
</property>
|
|
<property name="fixedHeight" stdset="0">
|
|
<number>80</number>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="m_hLayout_TopTool">
|
|
<property name="spacing">
|
|
<number>6</number>
|
|
</property>
|
|
<property name="contentsMargins" stdset="0">
|
|
<rect>
|
|
<x>8</x>
|
|
<y>8</y>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</rect>
|
|
</property>
|
|
<item>
|
|
<widget class="QPushButton" name="btn_copy">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>74</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #ffffff;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>复制</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/text.png</normaloff>:/image/text.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btn_paste">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background-color: #ffffff;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>粘贴</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/folder.png</normaloff>:/image/folder.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="btnCancel">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>74</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>74</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #ffffff;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>删除</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/image/close.png</normaloff>:/image/close.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>60</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="cbResolution">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>-1</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QComboBox {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
padding: 4px 20px 4px 8px;
|
|
icon-size:60px 60px;
|
|
}
|
|
QComboBox::drop-down { width: 30px; }</string>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="fixedHeight" stdset="0">
|
|
<number>60</number>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>5 dot</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>7 dot</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>9 dot</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>12 dot</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>16 dot</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>24 dot</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>32 dot</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="cbLocale">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QComboBox {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
padding: 4px 20px 4px 8px;
|
|
icon-size:60px 60px;
|
|
}
|
|
QComboBox::drop-down { width: 30px; }</string>
|
|
</property>
|
|
<property name="fixedHeight" stdset="0">
|
|
<number>60</number>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>UK</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/Demo/image/uk_flag.png</normaloff>:/Demo/image/uk_flag.png</iconset>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>US</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:/Demo/image/flag.png</normaloff>:/Demo/image/flag.png</iconset>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="fileSceneViewer" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>168</height>
|
|
</size>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<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="horizontalSpacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="MyView" name="graphicsView">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>170</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QGraphicsView QScrollBar:horizontal {
|
|
height: 28px; /* 水平滚动条高度,调大方便拖拽 */
|
|
background: #f0f0f0; /* 轨道背景色(可自行调整) */
|
|
}
|
|
|
|
QGraphicsView QScrollBar::handle:horizontal {
|
|
background: #b0b0b0; /* 滑块颜色 */
|
|
min-width: 60px; /* 滑块最小宽度,防止太小 */
|
|
border-radius: 6px;
|
|
}
|
|
</string>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAlwaysOn</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QFrame" name="controlAreaFrame">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>150</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>background-color:#828E9E;</string>
|
|
</property>
|
|
<property name="fixedHeight" stdset="0">
|
|
<number>200</number>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="vlayout">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="m_hLayout_Control1">
|
|
<property name="spacing">
|
|
<number>4</number>
|
|
</property>
|
|
<property name="contentsMargins" stdset="0">
|
|
<rect>
|
|
<x>6</x>
|
|
<y>6</y>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</rect>
|
|
</property>
|
|
<item>
|
|
<widget class="QLineEdit" name="m_LineEdit">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QLineEdit {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
/*padding: 4px 8px;
|
|
min-height: 32px;*/
|
|
font-size: 16px;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="m_btnLeft_Control1">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>34</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
min-width: 40px;
|
|
min-height: 32px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string><<</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="m_btnRight_Control1">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>34</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
min-width: 40px;
|
|
min-height: 32px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #d0d0d0;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>>></string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="m_mainLayout">
|
|
<property name="spacing">
|
|
<number>8</number>
|
|
</property>
|
|
<property name="contentsMargins" stdset="0">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>10</y>
|
|
<width>0</width>
|
|
<height>0</height>
|
|
</rect>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="m_lblY">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>88</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>QLabel {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
padding: 4px 8px;
|
|
min-height: 30px;
|
|
font-size: 14px;
|
|
color: #333333;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Y:9</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="m_lblX">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>100</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>QLabel {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
padding: 4px 8px;
|
|
min-height: 30px;
|
|
font-size: 14px;
|
|
color: #333333;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>X:105</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QGridLayout" name="m_arrowLayout">
|
|
<property name="spacing">
|
|
<number>4</number>
|
|
</property>
|
|
<item row="1" column="0">
|
|
<widget class="QPushButton" name="m_btnLeft_Arrow">
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #87CEEB;
|
|
border: 1px solid #4682B4;
|
|
border-radius: 4px;
|
|
min-width: 40px;
|
|
min-height: 40px;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #00008B;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #ADD8E6;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #B0E0E6;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>←</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="2">
|
|
<widget class="QPushButton" name="m_btnRight_Arrow">
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #87CEEB;
|
|
border: 1px solid #4682B4;
|
|
border-radius: 4px;
|
|
min-width: 40px;
|
|
min-height: 40px;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #00008B;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #ADD8E6;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #B0E0E6;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>→</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QPushButton" name="m_btnDown">
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #87CEEB;
|
|
border: 1px solid #4682B4;
|
|
border-radius: 4px;
|
|
min-width: 40px;
|
|
min-height: 40px;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #00008B;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #ADD8E6;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #B0E0E6;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>↓</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QPushButton" name="m_btnUp">
|
|
<property name="styleSheet">
|
|
<string>QPushButton {
|
|
background-color: #87CEEB;
|
|
border: 1px solid #4682B4;
|
|
border-radius: 4px;
|
|
min-width: 40px;
|
|
min-height: 40px;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #00008B;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #ADD8E6;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #B0E0E6;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>↑</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="m_lblID">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>88</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string>QLabel {
|
|
background-color: #e5e5e5;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
padding: 4px 8px;
|
|
min-height: 30px;
|
|
font-size: 14px;
|
|
color: #333333;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>ID:1</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="m_btnCheck">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>62</width>
|
|
<height>84</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Ubuntu</family>
|
|
<pointsize>-1</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background-color: #E6F7FF;
|
|
border: 1px solid #87CEEB;
|
|
border-radius: 4px;
|
|
min-width: 60px;
|
|
/*min-height: 40px;*/
|
|
font-size: 24px;
|
|
font-family: "Ubuntu";
|
|
color: #228B22;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #D1E9FF;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #BAE7FF;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>✓</string>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>32</width>
|
|
<height>32</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>MyView</class>
|
|
<extends>QGraphicsView</extends>
|
|
<header location="global">scene/myview.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="image.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|