[Solved] QHash inside QHash
Brainstorm
3
Posts
2
Posters
5.4k
Views
1
Watching
-
wrote on 3 Sept 2010, 07:19 last edited by
@QHash < int ,QHash> readDevices;@
@QVector<QHash> readDevices;@
Are these statements right?
[edit: solved / $chetankjain]
-
wrote on 3 Sept 2010, 09:03 last edited by
No. You need to use something like this:
@QHash<int, QHash<QString, QVariant> > someHash;@
and
@QVector<QHash<int, QPoint> > someVector;@
Note the space between the two >. That one is important as some compilers will break without it.
-
wrote on 3 Sept 2010, 10:44 last edited by
Thank you so much for such a quick answer.
1/3