Details
Description
The following Q_GLOBAL_STATIC cannot be inspected with GDB/Linux:
#include <QDebug> #include <QGlobalStatic> #include <QStringList> Q_GLOBAL_STATIC(QStringList, g_list) int main(int argc, char *argv[]) { g_list->append("Hello"); g_list->append("World"); qDebug() << *g_list; return 0; // break here }
However, if the code is in a QMainWindow, it works (if you add *g_list as expression).
Having it work with just g_list (without prefix *) would be the ice on the cake.