![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Functions | |
QList< QString > | list (200, "Pass") |
[1] | |
if (list[0]=="Liz") list[0] | |
[2] | |
for (qsizetype i=0;i< list.size();++i) | |
[3] | |
if (i !=-1) cout<< "First occurrence of Harumi is at position "<< i<< endl | |
QList< int > | list (10) |
[5] | |
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] | |
list | prepend ("one") |
list | prepend ("two") |
list | prepend ("three") |
list | insert (2, "gamma") |
list | insert (1, 3, 9.9) |
QList< QString > | list (3) |
[10] | |
list | fill ("Yes") |
list | fill ("oh", 5) |
list | indexOf ("B") |
list | indexOf ("B", 1) |
list | indexOf ("B", 2) |
list | indexOf ("X") |
list | lastIndexOf ("B") |
list | lastIndexOf ("B", 3) |
list | lastIndexOf ("B", 2) |
list | lastIndexOf ("X") |
Variables | |
QList< int > | integerList |
[0] | |
QList< QString > | stringList |
QList< QString > | list (200) {"a", "ccc"} |
[0] | |
qsizetype | i = list.indexOf("Harumi") |
[4] | |
int * | data = list.data() |
QString | three = "three" |
auto & | ref = list.emplaceBack() |
list append | ( | "one" | ) |
list append | ( | "two" | ) |
list fill | ( | "oh" | , |
5 | |||
) |
list fill | ( | "Yes" | ) |
for | ( | ) |
[3]
[4]
Definition at line 27 of file src_corelib_tools_qlist.cpp.
References QList< T >::at(), i, and list.
if | ( | i ! | = -1 | ) |
if | ( | list | [0] = ="Liz" | ) |
[2]
[3]
list indexOf | ( | "B" | ) |
Referenced by QUtcTimeZonePrivate::availableTimeZoneIds(), QUtcTimeZonePrivate::availableTimeZoneIds(), QRingBuffer::canReadLine(), QByteArrayView::contains(), QByteArrayView::contains(), QStringView::contains(), QString::contains(), QWindowsMenuBar::removeMenu(), and QTimeZonePrivate::windowsIdToDefaultIanaId().
list indexOf | ( | "B" | , |
1 | |||
) |
list indexOf | ( | "B" | , |
2 | |||
) |
list indexOf | ( | "X" | ) |
list insert | ( | 1 | , |
3 | , | ||
9. | 9 | ||
) |
list insert | ( | 2 | , |
"gamma" | |||
) |
list lastIndexOf | ( | "B" | ) |
Referenced by QString::lastIndexOf(), QByteArrayView::lastIndexOf(), QByteArray::lastIndexOf(), QString::lastIndexOf(), QString::lastIndexOf(), and QString::lastIndexOf().
list lastIndexOf | ( | "B" | , |
2 | |||
) |
list lastIndexOf | ( | "B" | , |
3 | |||
) |
list lastIndexOf | ( | "X" | ) |
QList< int > list | ( | 10 | ) |
[5]
[6]
list prepend | ( | "one" | ) |
Referenced by QForwardFieldList< N, nextMember, Tag >::copyAndClearPrepend(), QFieldList< N, nextMember >::copyAndClearPrepend(), QContiguousCache< T >::insert(), QFieldList< N, nextMember >::insertAfter(), QString::prepend(), QString::prepend(), QByteArray::push_front(), QByteArray::push_front(), QByteArray::push_front(), QCborArray::push_front(), QJsonArray::push_front(), QString::push_front(), QByteArray::push_front(), and QString::push_front().
list prepend | ( | "three" | ) |
list prepend | ( | "two" | ) |
qDebug | ( | ) |
[1]
[7]
[toString]
|
related |
Definition at line 43 of file src_corelib_tools_qlist.cpp.
qsizetype i = list.indexOf("Harumi") |
QList<int> integerList |
[0]
Definition at line 5 of file src_corelib_tools_qlist.cpp.
[0]
[5]
[1]
[2]
[6]
[7]
[move-append]
[emplace]
[emplace-back]
[emplace-back-ref]
[8]
[9]
[10]
[11]
[12]
[13]
Definition at line 50 of file src_corelib_tools_qlist.cpp.
Referenced by for().
ref = list.emplaceBack() |
Definition at line 88 of file src_corelib_tools_qlist.cpp.
Definition at line 6 of file src_corelib_tools_qlist.cpp.
Referenced by AndroidCameraPrivate::callParametersStringListMethod(), and stringList_contains().
QString three = "three" |
Definition at line 53 of file src_corelib_tools_qlist.cpp.