Pad Navigator Example▲
Sélectionnez
&
lt;ui version=
"4.0"
&
gt;
&
lt;class
&
gt;Form&
lt;/
class
&
gt;
&
lt;widget class
=
"QWidget"
name=
"Form"
&
gt;
&
lt;property name=
"geometry"
&
gt;
&
lt;rect&
gt;
&
lt;x&
gt;0
&
lt;/
x&
gt;
&
lt;y&
gt;0
&
lt;/
y&
gt;
&
lt;width&
gt;378
&
lt;/
width&
gt;
&
lt;height&
gt;385
&
lt;/
height&
gt;
&
lt;/
rect&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"windowTitle"
&
gt;
&
lt;string&
gt;BackSide&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;layout class
=
"QVBoxLayout"
name=
"verticalLayout_2"
&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QGroupBox"
name=
"groupBox"
&
gt;
&
lt;property name=
"title"
&
gt;
&
lt;string&
gt;Settings&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"flat"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"checkable"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;layout class
=
"QGridLayout"
name=
"gridLayout"
&
gt;
&
lt;item row=
"0"
column=
"0"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"label"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Title:&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"0"
column=
"1"
&
gt;
&
lt;widget class
=
"QLineEdit"
name=
"hostName"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Pad Navigator Example&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"1"
column=
"0"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"label_2"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Modified:&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"2"
column=
"0"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"label_3"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Extent&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"2"
column=
"1"
&
gt;
&
lt;layout class
=
"QHBoxLayout"
name=
"horizontalLayout"
&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QSlider"
name=
"horizontalSlider"
&
gt;
&
lt;property name=
"value"
&
gt;
&
lt;number&
gt;42
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"orientation"
&
gt;
&
lt;enum
&
gt;Qt::
Horizontal&
lt;/
enum
&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QSpinBox"
name=
"spinBox"
&
gt;
&
lt;property name=
"value"
&
gt;
&
lt;number&
gt;42
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"1"
column=
"1"
&
gt;
&
lt;widget class
=
"QDateTimeEdit"
name=
"dateTimeEdit"
/&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QGroupBox"
name=
"groupBox_2"
&
gt;
&
lt;property name=
"title"
&
gt;
&
lt;string&
gt;Other input&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"flat"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"checkable"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;layout class
=
"QHBoxLayout"
name=
"horizontalLayout_2"
&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QTreeWidget"
name=
"treeWidget"
&
gt;
&
lt;column&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Widgets On Graphics View&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
column&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsProxyWidget&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsWidget&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QObject&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsItem&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsLayoutItem&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
item&
gt;
&
lt;/
item&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsGridLayout&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsLayout&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsLayoutItem&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
item&
gt;
&
lt;/
item&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsLinearLayout&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsLayout&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;item&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;QGraphicsLayoutItem&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
item&
gt;
&
lt;/
item&
gt;
&
lt;/
item&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;tabstops&
gt;
&
lt;tabstop&
gt;groupBox&
lt;/
tabstop&
gt;
&
lt;tabstop&
gt;hostName&
lt;/
tabstop&
gt;
&
lt;tabstop&
gt;dateTimeEdit&
lt;/
tabstop&
gt;
&
lt;tabstop&
gt;horizontalSlider&
lt;/
tabstop&
gt;
&
lt;tabstop&
gt;spinBox&
lt;/
tabstop&
gt;
&
lt;tabstop&
gt;groupBox_2&
lt;/
tabstop&
gt;
&
lt;tabstop&
gt;treeWidget&
lt;/
tabstop&
gt;
&
lt;/
tabstops&
gt;
&
lt;resources/&
gt;
&
lt;connections&
gt;
&
lt;connection&
gt;
&
lt;sender&
gt;horizontalSlider&
lt;/
sender&
gt;
&
lt;signal&
gt;valueChanged(int
)&
lt;/
signal&
gt;
&
lt;receiver&
gt;spinBox&
lt;/
receiver&
gt;
&
lt;slot&
gt;setValue(int
)&
lt;/
slot&
gt;
&
lt;hints&
gt;
&
lt;hint type=
"sourcelabel"
&
gt;
&
lt;x&
gt;184
&
lt;/
x&
gt;
&
lt;y&
gt;125
&
lt;/
y&
gt;
&
lt;/
hint&
gt;
&
lt;hint type=
"destinationlabel"
&
gt;
&
lt;x&
gt;275
&
lt;/
x&
gt;
&
lt;y&
gt;127
&
lt;/
y&
gt;
&
lt;/
hint&
gt;
&
lt;/
hints&
gt;
&
lt;/
connection&
gt;
&
lt;connection&
gt;
&
lt;sender&
gt;spinBox&
lt;/
sender&
gt;
&
lt;signal&
gt;valueChanged(int
)&
lt;/
signal&
gt;
&
lt;receiver&
gt;horizontalSlider&
lt;/
receiver&
gt;
&
lt;slot&
gt;setValue(int
)&
lt;/
slot&
gt;
&
lt;hints&
gt;
&
lt;hint type=
"sourcelabel"
&
gt;
&
lt;x&
gt;272
&
lt;/
x&
gt;
&
lt;y&
gt;114
&
lt;/
y&
gt;
&
lt;/
hint&
gt;
&
lt;hint type=
"destinationlabel"
&
gt;
&
lt;x&
gt;190
&
lt;/
x&
gt;
&
lt;y&
gt;126
&
lt;/
y&
gt;
&
lt;/
hint&
gt;
&
lt;/
hints&
gt;
&
lt;/
connection&
gt;
&
lt;/
connections&
gt;
&
lt;/
ui&
gt;