QtBase  v6.3.1
Functions | Variables
src_corelib_tools_qlist.cpp File Reference

Go to the source code of this file.

Functions

QList< QStringlist (200, "Pass")
 [1] More...
 
 if (list[0]=="Liz") list[0]
 [2] More...
 
 for (qsizetype i=0;i< list.size();++i)
 [3] More...
 
if(i !=-1) cout<< "First occurrence of Harumi is at position "<< i<< Qt QList< int > list (10)
 [5] More...
 
list append ("one")
 
list append ("two")
 
list append (three)
 
list append (std::move(three))
 
list emplace (1, 2, 'b')
 
list emplaceBack (3, 'a')
 
 qDebug ()<< list
 [1] More...
 
list prepend ("one")
 
list prepend ("two")
 
list prepend ("three")
 
list<< 2.718<< 1.442<< 0.4342;list.insert(1, 3, 9.9);QList< QStringlist (3)
 
list fill ("Yes")
 
list fill ("oh", 5)
 

Variables

QList< int > integerList
 [0] More...
 
QList< QStringstringList
 
QList< QStringlist (200) {"a", "ccc"}
 [0] More...
 
qsizetype i = list.indexOf("Harumi")
 [4] More...
 
int * data = list.data()
 
QString three = "three"
 
autoref = list.emplaceBack()
 

Function Documentation

◆ append() [1/4]

list append ( "one"  )

◆ append() [2/4]

list append ( "two"  )

◆ append() [3/4]

list append ( std::move(three )

◆ append() [4/4]

list append ( three  )

◆ emplace()

list emplace ( ,
,
'b  
)

◆ emplaceBack()

list emplaceBack ( ,
'a  
)

◆ fill() [1/2]

list fill ( "oh"  ,
 
)

◆ fill() [2/2]

list fill ( "Yes"  )

◆ for()

for ( )

[3]

[0]

[4]

Definition at line 74 of file src_corelib_tools_qlist.cpp.

Here is the call graph for this function:

◆ if()

if ( list  [0] = ="Liz")

[2]

[3]

◆ list() [1/3]

if (i != -1) cout << "First occurrence of Harumi is at position " << i << Qt QList<int> list ( 10  )

[5]

[6]

◆ list() [2/3]

QList<QString> list ( 200  ,
"Pass"   
)

[1]

[2]

◆ list() [3/3]

list<< 2.718 << 1.442 << 0.4342;list.insert(1, 3, 9.9);QList<QString> list ( )

◆ prepend() [1/3]

list prepend ( "one"  )
Here is the caller graph for this function:

◆ prepend() [2/3]

list prepend ( "three"  )

◆ prepend() [3/3]

list prepend ( "two"  )

◆ qDebug()

qDebug ( )

[1]

[7]

[toString]

Variable Documentation

◆ data

int* data = list.data()
related

Definition at line 90 of file src_corelib_tools_qlist.cpp.

◆ i

qsizetype i = list.indexOf("Harumi")

[4]

[5]

Definition at line 82 of file src_corelib_tools_qlist.cpp.

◆ integerList

QList<int> integerList

[0]

Definition at line 52 of file src_corelib_tools_qlist.cpp.

◆ list

list<< "A" << "B" << "C" << "B" << "A";list.indexOf("B"); list.indexOf("B", 1); list.indexOf("B", 2); list.indexOf("X"); QList<QString> list ( 200  ) {"a", "ccc"}

[0]

[11]

[6]

[1]

[2]

[7]

[move-append]

[emplace]

[emplace-back]

[emplace-back-ref]

[8]

[9]

[12]

Definition at line 97 of file src_corelib_tools_qlist.cpp.

◆ ref

Definition at line 135 of file src_corelib_tools_qlist.cpp.

◆ stringList

QList<QString> stringList

Definition at line 53 of file src_corelib_tools_qlist.cpp.

◆ three

QString three = "three"

Definition at line 100 of file src_corelib_tools_qlist.cpp.