I have a problem with a QList of object pointers.
If I use the function count() before I have inserted any myObject* pointers then I get the following error:
Program received signal SIGSEGV, Segmentation fault.
0x0044866a in QListData::size() const (this=0x18)
at C:/cpp/qt4.2.1/include/QtCore/../../src/corelib/tools/qlist.h:66
When debugging I can see the fails at the following statement:
inline int size() const { return d->end - d->begin; }
in qlist.h
Have anyone got any suggestions to a work around?
Morty
Bookmarks