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

QMLCacheGen doesn't create a CleanupResources function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11.0 Beta 1
    • Fix Version/s: 5.11.0 Beta 3
    • Component/s: QML: Compiler
    • Labels:
      None
    • Environment:
      Visual Studio 2017 x64

      Description

      I am getting unresolved references when using "Q_CLEANUP_RESOURCE(ResourceName);" after adding CONFIG += qtquickcompiler to my .pro after updating to 5.11.0 beta.

      If I have a look at qmlcache_loader.cpp it contains the following code:

      int QT_MANGLE_NAMESPACE(qInitResources_ResourceName)() {
          ::unitRegistry();
          Q_INIT_RESOURCE(ResourceName_qmlcache);
          return 1;
      }
      Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_ResourceName));
      

      But does not contain a similar definition for qCleanupResources_

        Attachments

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

          Activity

            People

            Assignee:
            shausman Simon Hausmann
            Reporter:
            lmv Luke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes