- class Alternative#
The Alternative class stores attributes of a Bluetooth Data Element Alternative. More…
Synopsis#
Methods#
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()
def
remove()
def
removeAll()
def
removeAt()
def
removeFirst()
def
removeLast()
def
removeOne()
def
reserve()
def
resize()
def
shrink_to_fit()
def
size()
def
sliced()
def
squeeze()
def
swap()
def
swapItemsAt()
def
takeAt()
def
toList()
def
toVector()
def
value()
Static functions#
def
fromList()
def
fromVector()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
- __init__(list)#
- Parameters:
list – .list of QVariant
Constructs a new alternative that is a copy of
list
.- __init__()
Constructs a new empty alternative.
- append(l)#
- Parameters:
l – .list of QVariant
- append(arg__1)
- Parameters:
arg__1 – object
- at(i)#
- Parameters:
i – int
- Return type:
object
- back()#
- Return type:
object
- capacity()#
- Return type:
int
- clear()#
- constData()#
- Return type:
object
- constFirst()#
- Return type:
object
- constLast()#
- Return type:
object
- count()#
- Return type:
int
- data()#
- Return type:
object
- empty()#
- Return type:
bool
- first(n)#
- Parameters:
n – int
- Return type:
.list of QVariant
- first()
- Return type:
object
- static fromList(list)#
- Parameters:
list – .list of QVariant
- Return type:
.list of QVariant
- static fromVector(vector)#
- Parameters:
vector – .list of QVariant
- Return type:
.list of QVariant
- front()#
- Return type:
object
- insert(arg__1, arg__2)#
- Parameters:
arg__1 – int
arg__2 – object
- isEmpty()#
- Return type:
bool
- Parameters:
other – .list of QVariant
- Return type:
bool
- last()#
- Return type:
object
- last(n)
- Parameters:
n – int
- Return type:
.list of QVariant
- length()#
- Return type:
int
- mid(pos[, len=-1])#
- Parameters:
pos – int
len – int
- Return type:
.list of QVariant
- move(from, to)#
- Parameters:
from – int
to – int
- __add__(l)#
- Parameters:
l – .list of QVariant
- Return type:
.list of QVariant
- __iadd__(l)#
- Parameters:
l – .list of QVariant
- Return type:
.list of QVariant
- __lshift__(l)#
- Parameters:
l – .list of QVariant
- Return type:
.list of QVariant
- operator(i)#
- Parameters:
i – int
- Return type:
object
- pop_back()#
- pop_front()#
- prepend(arg__1)#
- Parameters:
arg__1 – object
- push_back(arg__1)#
- Parameters:
arg__1 – object
- push_front(arg__1)#
- Parameters:
arg__1 – object
- remove(i[, n=1])#
- Parameters:
i – int
n – int
- removeAll(arg__1)#
- Parameters:
arg__1 – object
- removeAt(i)#
- Parameters:
i – int
- removeFirst()#
- removeLast()#
- removeOne(arg__1)#
- Parameters:
arg__1 – object
- reserve(size)#
- Parameters:
size – int
- resize(size)#
- Parameters:
size – int
- shrink_to_fit()#
- size()#
- Return type:
int
- sliced(pos)#
- Parameters:
pos – int
- Return type:
.list of QVariant
- sliced(pos, n)
- Parameters:
pos – int
n – int
- Return type:
.list of QVariant
- squeeze()#
- swap(other)#
- Parameters:
other – .list of QVariant
- swapItemsAt(i, j)#
- Parameters:
i – int
j – int
- takeAt(i)#
- Parameters:
i – int
- Return type:
object
- toList()#
- Return type:
.list of QVariant
- toVector()#
- Return type:
.list of QVariant
- value(i)#
- Parameters:
i – int
- Return type:
object