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

Cannot compile qtdeclarative when networking is disabled.

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Commits:
      deb74c609e066b0efd73d1adbc6077e6ca7d8c45 (qt/qtdeclarative/5.14)

      Description

      If Qt 5.14.1 gets configured with -no-feature-network, qtdeclarative fails to compile because qv4engine.cpp uses QMLEngine::networkAccessManager() which is not present when networking is disabled.

      It seems to compile fine when checking the qml_network flag first:

      #if QT_CONFIG(qml_network)
          return engine->qmlEngine()->networkAccessManager();
      #else
      	return nullptr;
      #endif
      

      I haven't verified whether this doesn't cause other issues yet though.

      All newer versions of Qt are seemingly affected too.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            spycrab Spycrab
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes