September 3, 2010

Yash Yash
Lab Rat
92 posts

[Solved] QHash inside QHash

 
  1. QHash < int ,QHash> readDevices;

  1. QVector<QHash> readDevices;

Are these statements right?

[edit: solved / $chetankjain]

 Signature 

http://kineticwing.com : Web IDE, QSS Editor
http://speedovation.com : Development Lab

2 replies

September 3, 2010

Tobias Hunger Tobias Hunger
Robot Herder
3387 posts

No. You need to use something like this:

  1. QHash<int, QHash<QString, QVariant> > someHash;

and

  1. QVector<QHash<int, QPoint> > someVector;

Note the space between the two >. That one is important as some compilers will break without it.

September 3, 2010

Yash Yash
Lab Rat
92 posts

Thank you so much for such a quick answer.

 Signature 

http://kineticwing.com : Web IDE, QSS Editor
http://speedovation.com : Development Lab

 
  ‹‹ Qt-API for Speech recognition      QMessageBox with a timeout ››

You must log in to post a reply. Not a member yet? Register here!