D-Bus Remote Controlled Car Example▲
Sélectionnez
&
lt;ui version=
"4.0"
&
gt;
&
lt;class
&
gt;Controller&
lt;/
class
&
gt;
&
lt;widget class
=
"QWidget"
name=
"Controller"
&
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;255
&
lt;/
width&
gt;
&
lt;height&
gt;111
&
lt;/
height&
gt;
&
lt;/
rect&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"windowTitle"
&
gt;
&
lt;string&
gt;Controller&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;layout class
=
"QGridLayout"
&
gt;
&
lt;property name=
"margin"
&
gt;
&
lt;number&
gt;9
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"spacing"
&
gt;
&
lt;number&
gt;6
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;item row=
"1"
column=
"1"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"label"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Controller&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"2"
column=
"1"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"decelerate"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Decelerate&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"0"
column=
"1"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"accelerate"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Accelerate&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"1"
column=
"2"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"right"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Right&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"1"
column=
"0"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"left"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Left&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;resources/&
gt;
&
lt;connections/&
gt;
&
lt;/
ui&
gt;