QListlist; list.append(1); list.append(2); list.append(3);
int first = list.first(); // returns 1 int last = list.last(); // returns 3 int second = list.at(1); // returns 2
list.removeFirst(); // removes the first element (1) list.removeLast(); // removes the last element (3) list.removeAt(1); // removes the element at index 1 (2)The QList class is part of the Qt Core module of the Qt Library.