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

qqmlprivate.h warns about QQmlPrivate::RegisterCompositeType not being constructable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.1.0
    • None
    • Visual Studio 2010

    Description

      With latest qtdeclarative in stable, including QtQml results in:

      c:\users\josh\st\qt5\qtbase\include\qtqml\../../../qtdeclarative/src/qml/qml/qqmlprivate.h(261) : warning C4510: 'QQmlPrivate::RegisterCompositeType' : default constructor could not be generated
      
      
              c:\users\josh\st\qt5\qtbase\include\qtqml\../../../qtdeclarative/src/qml/qml/qqmlprivate.h(255) : see declaration of 'QQmlPrivate::RegisterCompositeType'
      
      
      c:\users\josh\st\qt5\qtbase\include\qtqml\../../../qtdeclarative/src/qml/qml/qqmlprivate.h(261) : warning C4610: struct 'QQmlPrivate::RegisterCompositeType' can never be instantiated - user defined constructor required
      

      I think the warning is wrong, since qqmlimport.cpp compiles successfully, but it's a problem when compiling with warnings-as-errors.

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            jfaust Josh Faust
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes