- class Sequence#
Sequence类存储蓝牙数据元素序列的属性。 更多…
简介#
方法#
def
__init__()def
append()def
at()def
back()def
capacity()def
clear()def
constData()def
constFirst()def
constLast()def
count()def
data()def
empty()def
first()def
front()def
insert()def
isEmpty()def
isSharedWith()def
last()def
length()def
mid()def
move()def
__add__()def
__iadd__()def
__lshift__()def
operator[]()def
pop_back()def
pop_front()def
prepend()def
push_back()def
push_front()定义
remove()定义
removeAll()定义
removeAt()定义
removeLast()定义
removeOne()定义
reserve()定义
resize()定义
size()定义
sliced()定义
squeeze()定义
swap()定义
takeAt()定义
toList()定义
toVector()定义
value()
静态函数#
定义
fromList()定义
fromVector()
注意
此文档可能包含自动从C++转换到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,也可以通过在https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们
详细描述#
- __init__(list)#
- 参数::
list – .list of QVariant
构造一个新序列,它是
list的副本。- __init__()
构建一个新空序列。
- append(l)#
- 参数::
l – .QVariant 列表
- append(arg__1)
- 参数::
arg__1 – 对象
- at(i)#
- 参数::
i – int
- 返回类型:
对象
- back()#
- 返回类型:
对象
- capacity()#
- 返回类型:
int
- clear()#
- constData()#
- 返回类型:
对象
- constFirst()#
- 返回类型:
对象
- constLast()#
- 返回类型:
对象
- count()#
- 返回类型:
int
- data()#
- 返回类型:
对象
- empty()#
- 返回类型:
true
- first(n)#
- 参数::
n – int
- 返回类型:
QVariant 列表
- first()
- 返回类型:
对象
- staticfromList(list)#
- 参数::
list – .list of QVariant
- 返回类型:
QVariant 列表
- staticfromVector(vector)#
- 参数::
vector – .QVariant 列表
- 返回类型:
QVariant 列表
- front()#
- 返回类型:
对象
- insert(arg__1, arg__2)#
- 参数::
arg__1 – int
arg__2 – 对象
- isEmpty()
- 返回类型:
true
- 参数::
other – .list of QVariant
- 返回类型:
true
- last()
- 返回类型:
对象
- last(n)
- 参数::
n – int
- 返回类型:
QVariant 列表
- length()
- 返回类型:
int
- mid(pos[, len=-1])
- 参数::
pos – int
len – int
- 返回类型:
QVariant 列表
- move(from, to)
- 参数::
from – int
to – int
- __add__(l)
- 参数::
l – .QVariant 列表
- 返回类型:
QVariant 列表
- __iadd__(l)
- 参数::
l – .QVariant 列表
- 返回类型:
QVariant 列表
- __lshift__(l)
- 参数::
l – .QVariant 列表
- 返回类型:
QVariant 列表
- operator(i)
- 参数::
i – int
- 返回类型:
对象
- pop_back()
- pop_front()
- prepend(arg__1)
- 参数::
arg__1 – 对象
- push_back(arg__1)
- 参数::
arg__1 – 对象
- push_front(arg__1)
- 参数::
arg__1 – 对象
- remove(i[, n=1])
- 参数::
i – int
n – int
- removeAll(arg__1)
- 参数::
arg__1 – 对象
- removeAt(i)
- 参数::
i – int
- removeFirst()#
- removeLast()#
- removeOne(arg__1)#
- 参数::
arg__1 – 对象
- reserve(size)#
- 参数::
size – int
- resize(size)#
- 参数::
size – int
- shrink_to_fit()#
- size()#
- 返回类型:
int
- sliced(pos)#
- 参数::
pos – int
- 返回类型:
QVariant 列表
- sliced(pos, n)
- 参数::
pos – int
n – int
- 返回类型:
QVariant 列表
- squeeze()#
- swap(other)#
- 参数::
other – .list of QVariant
- swapItemsAt(i, j)#
- 参数::
i – int
j – int
- takeAt(i)#
- 参数::
i – int
- 返回类型:
对象
- toList()#
- 返回类型:
QVariant 列表
- toVector()#
- 返回类型:
QVariant 列表
- value(i)#
- 参数::
i – int
- 返回类型:
对象