QList

#include <QtCore/QList>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QList


Overview

Inheritance

QList
QQueue

Public Types Index

Public Attributes Index

Public Functions Index

QList ()
QList (const QList< T > &l)
~QList ()
voidappend (const T &t)
voidappend (const QList< T > &t)
const T &at (int i) const
T &back ()
const T &back () const
iteratorbegin ()
const_iteratorbegin () const
voidclear ()
const_iteratorconstBegin () const
const_iteratorconstEnd () const
QBoolcontains (const T &t) const
intcount (const T &t) const
intcount () const
voiddetach ()
voiddetachShared ()
boolempty () const
iteratorend ()
const_iteratorend () const
boolendsWith (const T &t) const
iteratorerase (iterator pos)
iteratorerase (iterator first, iterator last)
T &first ()
const T &first () const
T &front ()
const T &front () const
intindexOf (const T &t, int from=0) const
voidinsert (int i, const T &t)
iteratorinsert (iterator before, const T &t)
boolisDetached () const
boolisEmpty () const
boolisSharedWith (const QList< T > &other) const
T &last ()
const T &last () const
intlastIndexOf (const T &t, int from=-1) const
intlength () const
QList< T >mid (int pos, int length=-1) const
voidmove (int from, int to)
booloperator!= (const QList< T > &l) const
QList< T >operator+ (const QList< T > &l) const
QList< T > &operator+= (const QList< T > &l)
QList< T > &operator+= (const T &t)
QList< T > &operator<< (const T &t)
QList< T > &operator<< (const QList< T > &l)
QList< T > &operator= (const QList< T > &l)
booloperator== (const QList< T > &l) const
const T &operator[] (int i) const
T &operator[] (int i)
voidpop_back ()
voidpop_front ()
voidprepend (const T &t)
voidpush_back (const T &t)
voidpush_front (const T &t)
intremoveAll (const T &t)
voidremoveAt (int i)
voidremoveFirst ()
voidremoveLast ()
boolremoveOne (const T &t)
voidreplace (int i, const T &t)
voidreserve (int size)
voidsetSharable (bool sharable)
intsize () const
boolstartsWith (const T &t) const
voidswap (QList< T > &other)
voidswap (int i, int j)
TtakeAt (int i)
TtakeFirst ()
TtakeLast ()
QSet< T >toSet () const
std::list< T >toStdList () const
QVector< T >toVector () const
Tvalue (int i) const
Tvalue (int i, const T &defaultValue) const

Static Public Functions Index

QList< T >fromSet (const QSet< T > &set)
QList< T >fromStdList (const std::list< T > &list)
QList< T >fromVector (const QVector< T > &vector)

Public Types

typedef const value_type * const_pointer

typedef const value_type & const_reference

typedef const_iterator ConstIterator

typedef qptrdiff difference_type

typedef iterator Iterator

typedef value_type * pointer

typedef value_type & reference

typedef int size_type

typedef T value_type

Public Attributes

Public Functions

QList ()

QList (

~QList ()

Destructor.

void append (
  • const T &t)

void append (

const T & at (
  • inti)

T & back ()

const T & back ()

iterator begin ()

void clear ()

const_iterator constBegin ()

const_iterator constEnd ()

QBool contains (
  • const T &t)

int count (
  • const T &t)

int count ()

void detach ()

void detachShared ()

bool empty ()

iterator end ()

bool endsWith (
  • const T &t)

iterator erase (

iterator erase (

T & first ()

const T & first ()

T & front ()

const T & front ()

int indexOf (
  • const T &t,
  • intfrom )

void insert (
  • inti,
  • const T &t )

iterator insert (

bool isDetached ()

bool isEmpty ()

bool isSharedWith (

T & last ()

const T & last ()

int lastIndexOf (
  • const T &t,
  • intfrom )

int length ()

QList< T > mid (
  • intpos,
  • intlength )

void move (
  • intfrom,
  • intto )

bool operator!= (

QList< T > operator+ (

QList< T > & operator+= (

QList< T > & operator+= (
  • const T &t)

QList< T > & operator<< (
  • const T &t)

QList< T > & operator<< (

QList< T > & operator= (

bool operator== (

const T & operator[] (
  • inti)

T & operator[] (
  • inti)

void pop_back ()

void pop_front ()

void prepend (
  • const T &t)

void push_back (
  • const T &t)

void push_front (
  • const T &t)

int removeAll (
  • const T &t)

void removeAt (
  • inti)

void removeFirst ()

void removeLast ()

bool removeOne (
  • const T &t)

void replace (
  • inti,
  • const T &t )

void reserve (
  • intsize)

void setSharable (
  • boolsharable)

int size ()

bool startsWith (
  • const T &t)

void swap (

void swap (
  • inti,
  • intj )

T takeAt (
  • inti)

T takeFirst ()

T takeLast ()

QSet< T > toSet ()

std::list< T > toStdList ()

QVector< T > toVector ()

T value (
  • inti)

T value (
  • inti,
  • const T &defaultValue )

Static Public Functions

QList< T > fromSet (
  • const QSet< T > &set)

QList< T > fromStdList (
  • const std::list< T > &list)

QList< T > fromVector (

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus