class Alternative#

The Alternative class stores attributes of a Bluetooth Data Element Alternative. More

Synopsis#

Methods#

Static functions#

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

isSharedWith(other)#
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