
Originally Posted by
Zlatomir
He meant something like this:
QList<QList<some_type> > list; // notice the space within '>' and '>'
Ok, but how can I add a QList?
Ex:
QList< QList<int> > * tileList;
QList<int> list;
tileList << list;
QList< QList<int> > * tileList;
QList<int> list;
tileList << list;
To copy to clipboard, switch view to plain text mode
Gives an error:
error: no match for 'operator<<' in '((Widget*)this)->Widget::tileList << rowList'
note: candidates are: QDataStream& operator<<(QDataStream&, const QChar&)
//Huge list follows.....
error: no match for 'operator<<' in '((Widget*)this)->Widget::tileList << rowList'
note: candidates are: QDataStream& operator<<(QDataStream&, const QChar&)
//Huge list follows.....
To copy to clipboard, switch view to plain text mode
Edit: If I use:
tileList->append(rowList);
tileList->append(rowList);
To copy to clipboard, switch view to plain text mode
The application crashes with "Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function."
Bookmarks