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

QMLCacheGen doesn't create a CleanupResources function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.0 Beta 3
    • 5.11.0 Beta 1
    • QML: Compiler
    • None
    • 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

            shausman Simon Hausmann
            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