Sulla
Sulla

Reputation: 8019

How to look at the data stored in a QMap?

How to look at the data stored in QMap without iterating through it? I am trying to debug an application using QMap with many keys, do you know a way to look at the data in QMap without iterating through each value?

Upvotes: 3

Views: 1096

Answers (1)

Stephen Chu
Stephen Chu

Reputation: 12832

This will dump the content of a QMap (and other Qt types) to stderr:

qDebug() << yourQMap;

Upvotes: 2

Related Questions