Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125097

Q_APPLICATION_STATIC needs to say that it's in #include <QtCore/QApplicationStatic>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.3, 6.7.1
    • Documentation
    • None

    Description

      According to documentation https://doc.qt.io/qt-6/qglobalstatic.html,
      it should be enough to add #include <QGlobalStatic> in order to use Q_APPLICATION_STATIC macro.

      But this is actually not true and you have to add #include <qapplicationstatic.h> into your code
      to be able use it.

      Attachments

        For Gerrit Dashboard: QTBUG-125097
        # Subject Branch Project Status CR V

        Activity

          People

            docteam Qt Documentation Team
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change