⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 propertiesdialog.ui

📁 关于qt编程小例子,里面有很多有价值的东西,可以看看的了!
💻 UI
📖 第 1 页 / 共 2 页
字号:
                    <number>11</number>                </property>                <property name="spacing">                    <number>6</number>                </property>                <widget class="QLabel" row="1" column="0">                    <property name="name">                        <cstring>lineColorLabel</cstring>                    </property>                    <property name="text">                        <string>Line Color:</string>                    </property>                </widget>                <widget class="QLabel" row="0" column="0">                    <property name="name">                        <cstring>textLabel</cstring>                    </property>                    <property name="text">                        <string>Text:</string>                    </property>                </widget>                <widget class="QLabel" row="2" column="0">                    <property name="name">                        <cstring>fillColorLabel</cstring>                    </property>                    <property name="text">                        <string>Fill Color:</string>                    </property>                </widget>                <widget class="QLayoutWidget" row="1" column="1">                    <property name="name">                        <cstring>lineColorLayout</cstring>                    </property>                    <hbox>                        <property name="name">                            <cstring>unnamed</cstring>                        </property>                        <property name="margin">                            <number>0</number>                        </property>                        <property name="spacing">                            <number>6</number>                        </property>                        <widget class="QFrame">                            <property name="name">                                <cstring>lineColorSample</cstring>                            </property>                            <property name="sizePolicy">                                <sizepolicy>                                    <hsizetype>7</hsizetype>                                    <vsizetype>5</vsizetype>                                    <horstretch>0</horstretch>                                    <verstretch>0</verstretch>                                </sizepolicy>                            </property>                            <property name="minimumSize">                                <size>                                    <width>80</width>                                    <height>0</height>                                </size>                            </property>                            <property name="maximumSize">                                <size>                                    <width>32767</width>                                    <height>15</height>                                </size>                            </property>                            <property name="frameShape">                                <enum>Box</enum>                            </property>                            <property name="frameShadow">                                <enum>Plain</enum>                            </property>                        </widget>                        <widget class="QPushButton">                            <property name="name">                                <cstring>lineColorButton</cstring>                            </property>                            <property name="text">                                <string>Choose...</string>                            </property>                        </widget>                    </hbox>                </widget>                <widget class="QLayoutWidget" row="2" column="1">                    <property name="name">                        <cstring>fillColorLayout</cstring>                    </property>                    <hbox>                        <property name="name">                            <cstring>unnamed</cstring>                        </property>                        <property name="margin">                            <number>0</number>                        </property>                        <property name="spacing">                            <number>6</number>                        </property>                        <widget class="QFrame">                            <property name="name">                                <cstring>fillColorSample</cstring>                            </property>                            <property name="sizePolicy">                                <sizepolicy>                                    <hsizetype>7</hsizetype>                                    <vsizetype>5</vsizetype>                                    <horstretch>0</horstretch>                                    <verstretch>0</verstretch>                                </sizepolicy>                            </property>                            <property name="maximumSize">                                <size>                                    <width>32767</width>                                    <height>15</height>                                </size>                            </property>                            <property name="frameShape">                                <enum>Box</enum>                            </property>                            <property name="frameShadow">                                <enum>Plain</enum>                            </property>                        </widget>                        <widget class="QPushButton">                            <property name="name">                                <cstring>fillColorButton</cstring>                            </property>                            <property name="text">                                <string>Choose...</string>                            </property>                        </widget>                    </hbox>                </widget>                <widget class="QLineEdit" row="0" column="1">                    <property name="name">                        <cstring>textLineEdit</cstring>                    </property>                </widget>            </grid>        </widget>        <widget class="QLayoutWidget">            <property name="name">                <cstring>buttonLayout</cstring>            </property>            <hbox>                <property name="name">                    <cstring>unnamed</cstring>                </property>                <property name="margin">                    <number>0</number>                </property>                <property name="spacing">                    <number>6</number>                </property>                <spacer>                    <property name="name">                        <cstring>buttonSpacer</cstring>                    </property>                    <property name="orientation">                        <enum>Horizontal</enum>                    </property>                    <property name="sizeType">                        <enum>Expanding</enum>                    </property>                    <property name="sizeHint">                        <size>                            <width>20</width>                            <height>20</height>                        </size>                    </property>                </spacer>                <widget class="QPushButton">                    <property name="name">                        <cstring>okButton</cstring>                    </property>                    <property name="text">                        <string>OK</string>                    </property>                    <property name="default">                        <bool>true</bool>                    </property>                </widget>                <widget class="QPushButton">                    <property name="name">                        <cstring>cancelButton</cstring>                    </property>                    <property name="text">                        <string>Cancel</string>                    </property>                </widget>            </hbox>        </widget>    </vbox></widget><connections>    <connection>        <sender>okButton</sender>        <signal>clicked()</signal>        <receiver>PropertiesDialog</receiver>        <slot>accept()</slot>    </connection>    <connection>        <sender>cancelButton</sender>        <signal>clicked()</signal>        <receiver>PropertiesDialog</receiver>        <slot>reject()</slot>    </connection>    <connection>        <sender>lineColorButton</sender>        <signal>clicked()</signal>        <receiver>PropertiesDialog</receiver>        <slot>chooseLineColor()</slot>    </connection>    <connection>        <sender>fillColorButton</sender>        <signal>clicked()</signal>        <receiver>PropertiesDialog</receiver>        <slot>chooseFillColor()</slot>    </connection></connections><tabstops>    <tabstop>xSpinBox</tabstop>    <tabstop>ySpinBox</tabstop>    <tabstop>widthSpinBox</tabstop>    <tabstop>heightSpinBox</tabstop>    <tabstop>textLineEdit</tabstop>    <tabstop>lineColorButton</tabstop>    <tabstop>fillColorButton</tabstop>    <tabstop>okButton</tabstop>    <tabstop>cancelButton</tabstop></tabstops><includes>    <include location="global" impldecl="in declaration">qcanvas.h</include></includes><slots>    <slot>chooseLineColor()</slot>    <slot>chooseFillColor()</slot>    <slot>exec(QCanvasItem *item)</slot></slots><layoutdefaults spacing="6" margin="11"/></UI>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -