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

Qt Creator 4.13.0 Build Failed if Qt is built as other namespace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.13.0
    • Fix Version/s: Qt Creator 4.13.1
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Platform/s:
      Linux/X11, Windows
    • Commits:
      574bd9a4537bb32e6fd20da611148e7e4106387d 17eab3db11f0a6b320e91d9cece6849cff5465c0 104e4980890c2d38d0fc6a2749c9129f2c7e82e0

      Description

      my Qt is build in namespace DX and QtCreator 4.12.x works fine.

      • following files should use QT_BEGIN_NAMESPACE and QT_END_NAMESPACE with UI class declareation

      $\src\plugins\qmldesigner\assetexporterplugin\assetexportdialog.h
      $\src\plugins\mesonprojectmanager\project\buildoptions\mesonbuildsettingswidget.h
      $\src\plugins\mesonprojectmanager\project\buildoptions\mesonbuildstepconfigwidget.h
      $\src\plugins\mesonprojectmanager\settings\general\generalsettingswidget.h
      $\src\plugins\mesonprojectmanager\settings\tools\toolitemsettings.h
      $\src\plugins\mesonprojectmanager\settings\tools\toolssettingswidget.h

      like

      QT_BEGIN_NAMESPACE
      namespace Ui

      { class XXXXXXX; }

      QT_END_NAMESPACE

      • follwing files are missing QT_BEGIN_NAMESPACE and QT_END_NAMESPACE for forward declaration

      $\src\plugins\android\androidservicewidget.h
      $\src\plugins\help\filtersettingspage.h

      like

      QT_BEGIN_NAMESPACE
      class QHelpFilterSettingsWidget;
      QT_END_NAMESPACE

      • following file need  QT_BEGIN_NAMESPACE and QT_END_NAMESPACE to cover overload QDebug operator<<

      $\src\plugins\qmldesigner\assetexporterplugin\assetexporterview.h
      $\src\plugins\qmldesigner\assetexporterplugin\assetexporterview.cpp

      like

      QT_BEGIN_NAMESPACE
      QDebug operator<<(QDebug os, const QmlDesigner::AssetExporterView::LoadState &s);
      QT_END_NAMESPACE

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-24544
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            hjk hjk
            Reporter:
            dext dexter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes