[Qt-creator] gdb Debugg Helpers - typedef bug

Robert Caldecott robert.caldecott at gmail.com
Sun Jul 19 20:54:33 CEST 2009


I think this may of been posted before but if you typedef a QMap,
QList, etc. you cannot view the contents with the debugging helpers,
e.g.:

#include <QtCore/QCoreApplication>
#include <QMap>
#include <QString>
#include <QListv

int main(int argc, char *argv[])
{
 QCoreApplication a(argc, argv);
 QMap<QString, QString> map1;
 map1["Hello"] = "World!";

 typedef QMap<QString, QString> Map;
 Map map2;
 map2["Hello"] = "World!";

 QList<int> list1;
 list1.append(1234);

 typedef <int> List;
 List list2;
 list2.append(1234);
 return a.exec();
}

map1 and list1 are fine, map2 and list2 won;t display.  I am on the
latest 1.2.1 on XP SP3.



More information about the Qt-creator-old mailing list