Top "Qlist" questions

QList is a class in Qt that implements a list, providing fast index-access, as well as fast insertions and removals of elements.

Why doesn't QList have a resize() method?

I just noticed that QList doesn't have a resize method, while QVector, for example, has one. Why is this? And …

c++ qt qlist
QList and delete

I have a QList with pointers to objects with class type Model. I would like to delete appropriately this QList …

qt memory-management qlist
How to find object in QList by specific field in c++98?

I have this simple class: class SomeClass { QString key; QString someData; int otherField; public: QString getKey() { return key }; }; And I …

c++ qt find qt-creator qlist
Qt setHorizontalHeaderLabels for tableWidget

How would I go about using the setHorizontalHeaderLabels property of my tableWidget to specify names for my columns as opposed …

qt user-interface qtablewidget qlist
QList vs QVector revisited

My question is basically when to choose QVector and when to choose QList as your Qt container. What I already …

c++ qt qt5 qlist qvector
Pointer to QList - at() vs. [] operator

I'm having problem with understanding some of QList behavior. #include <QList> #include <iostream> using namespace std; …

c++ qt qt4 qlist
How to use qSort with custom types in QList?

I have a problem with sorting a QList containing instances of a struct: class modelHeuristic { typedef struct { QString c; QString …

c++ qt sorting qtcore qlist
Can two threads read from the same QList at the same time?

Pretty new to threading and I have this QList that the threads share between them. They all have their own …

c++ qt qthread qlist
Qt list.clear() does it destroy the object's?

Let's say I have the following list: QList<Type*> list; list.add(new Type()); list.add(new Type()); …

c++ qt qtcore qlist
Printing Qt data structures (QList, QString, etc.) in XCode 3.xx GDB

I am trying to debug some Qt containers in XCode and the results I get back from GDB are not …

c++ xcode qt gdb qlist