Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
Qt Creator 4.0.0-rc1, Qt Creator 4.8.0
Description
and it does not matter which code model is activated
#include "mainwindow.h" #include "ui_mainwindow.h" Q_GLOBAL_STATIC(QStringList, test) MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); test()->append("foo"); } MainWindow::~MainWindow() { delete ui; test->clear(); }