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

qmldump creates a component with no name, which causes error in QML file

    XMLWordPrintable

Details

    • 38d90e58d0b7540e6b0f68ff085a8a5d38ed7672

    Description

      Run qmldumb for examples in Qt: qmldump -path %QTDIR%\
      examples\declarative\cppextensions\qwidgets\QWidgets
      Copy output to QWidgets folder, to plugins.qmltypes file.
      Output starts with:
      Module {
      Component {
      name: ""
      defaultProperty: "children"
      prototype: "MyPushButton"
      exports: [
      "MyPushButton 1.0"
      ]
      ....
      Since name field is empty, import "QWidgets" 1.0 in QML causes red underlines and error "Component definition is missing a name binding".

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes