Bluetooth File Transfer Example▲
Sélectionnez
&
lt;?xml version=
"1.0"
encoding=
"UTF-8"
?&
gt;
&
lt;ui version=
"4.0"
&
gt;
&
lt;class
&
gt;RemoteSelector&
lt;/
class
&
gt;
&
lt;widget class
=
"QDialog"
name=
"RemoteSelector"
&
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;681
&
lt;/
width&
gt;
&
lt;height&
gt;394
&
lt;/
height&
gt;
&
lt;/
rect&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"windowTitle"
&
gt;
&
lt;string&
gt;Available file transfer services&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;layout class
=
"QVBoxLayout"
name=
"verticalLayout"
&
gt;
&
lt;item&
gt;
&
lt;layout class
=
"QGridLayout"
name=
"gridLayout"
&
gt;
&
lt;property name=
"horizontalSpacing"
&
gt;
&
lt;number&
gt;6
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;item row=
"7"
column=
"0"
colspan=
"2"
&
gt;
&
lt;widget class
=
"QLineEdit"
name=
"fileName"
/&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"7"
column=
"2"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"fileSelectPB"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Fixed"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Select File&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"8"
column=
"0"
colspan=
"3"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"sendButton"
&
gt;
&
lt;property name=
"enabled"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Send&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"0"
column=
"0"
colspan=
"3"
&
gt;
&
lt;layout class
=
"QHBoxLayout"
name=
"horizontalLayout"
&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"busyWidget"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Fixed"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"maximumSize"
&
gt;
&
lt;size&
gt;
&
lt;width&
gt;16
&
lt;/
width&
gt;
&
lt;height&
gt;16
&
lt;/
height&
gt;
&
lt;/
size&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"baseSize"
&
gt;
&
lt;size&
gt;
&
lt;width&
gt;16
&
lt;/
width&
gt;
&
lt;height&
gt;16
&
lt;/
height&
gt;
&
lt;/
size&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;TextLabel&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"status"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Scanning...&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"pairingBusy"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;TextLabel&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QPushButton"
name=
"stopButton"
&
gt;
&
lt;property name=
"enabled"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Fixed"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Stop&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QPushButton"
name=
"refreshPB"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Fixed"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Refresh&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"6"
column=
"0"
colspan=
"3"
&
gt;
&
lt;widget class
=
"QTableWidget"
name=
"remoteDevices"
&
gt;
&
lt;property name=
"horizontalScrollBarPolicy"
&
gt;
&
lt;enum
&
gt;Qt::
ScrollBarAsNeeded&
lt;/
enum
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"editTriggers"
&
gt;
&
lt;set&
gt;QAbstractItemView::
NoEditTriggers&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"showDropIndicator"
stdset=
"0"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alternatingRowColors"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"selectionMode"
&
gt;
&
lt;enum
&
gt;QAbstractItemView::
SingleSelection&
lt;/
enum
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"selectionBehavior"
&
gt;
&
lt;enum
&
gt;QAbstractItemView::
SelectRows&
lt;/
enum
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"showGrid"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"wordWrap"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"rowCount"
&
gt;
&
lt;number&
gt;1
&
lt;/
number&
gt;
&
lt;/
property&
gt;
&
lt;attribute name=
"horizontalHeaderCascadingSectionResizes"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
attribute&
gt;
&
lt;attribute name=
"horizontalHeaderDefaultSectionSize"
&
gt;
&
lt;number&
gt;150
&
lt;/
number&
gt;
&
lt;/
attribute&
gt;
&
lt;attribute name=
"horizontalHeaderStretchLastSection"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
attribute&
gt;
&
lt;attribute name=
"verticalHeaderVisible"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
attribute&
gt;
&
lt;attribute name=
"verticalHeaderCascadingSectionResizes"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
attribute&
gt;
&
lt;row&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Test&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
row&
gt;
&
lt;column&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;MAC Address&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
column&
gt;
&
lt;column&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Device Name&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
column&
gt;
&
lt;column&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Device Service&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
column&
gt;
&
lt;column&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Paired&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"toolTip"
&
gt;
&
lt;string comment=
"Paired"
extracomment=
"Paired"
/&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"whatsThis"
&
gt;
&
lt;string comment=
"Paired"
extracomment=
"Paired"
/&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"textAlignment"
&
gt;
&
lt;set&
gt;AlignHCenter|
AlignVCenter|
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
column&
gt;
&
lt;column&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Authorized&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"textAlignment"
&
gt;
&
lt;set&
gt;AlignHCenter|
AlignVCenter|
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
column&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;resources/&
gt;
&
lt;connections/&
gt;
&
lt;/
ui&
gt;