[SOLVED]QList holding another QList
-
Hi everyone,
I need a QList to held another QList. It is like
@QList<QList> list;@Is there any way to do it?
Thanks in advance, -
Yes, you can use QList<QList<yourItem> >
Just don't forget the space between the ">" to make a distinction with the >> operator.
-
Thank you. It never cross my mind that put a space between the operators.
-
Nope. it's just that there is an operator >>.
Like for example @qDebug() << myObject @
To make a distinction with this and our case, ( for the moc compilation ), a space helps to avoid confusion.