Containers
-
QList [3], std::tuple, QList, QVector...
Basically anything with constant access time. For 3 items it doesn't really matter unless you have some more specific requirements like memory constraint or binary layout etc. -
It's a plain C++ array. Like in most other places in C++ indices are 0-based
An example:
@
QList<QString> data[3]; //3 lists of strings
data[0] << "foo" << "bar"; //add "foo" and "bar" to first list
qDebug() << data[0][0]; //print first element of first list
@