Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16151

find usage on Q_GLOBAL_STATIC does not work

    XMLWordPrintable

Details

    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();
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            tjenssen Tim Jenssen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes