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

qml1plugindump skip signals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.1
    • None

    Description

      When you run qmlplugindump with Qt 4.8.5 MSVC2010:

      %QTDIR%\bin\qmlplugindump -path ./MyItemComponent > ./MyItemComponent/plugins.qmltypes

      You will get:

      import QtQuick.tooling 1.1
      
      // This file describes the plugin-supplied types contained in the library.
      // It is used for QML tooling purposes only.
      
      Module {
          Component {
              name: "MyItem"
              defaultProperty: "data"
              prototype: "QDeclarativeItem"
              exports: [
                  "MyItem 1.0"
              ]
              exportMetaObjectRevisions: [
                  0
              ]
              Signal {
                  name: "test"
                  Parameter { name: "num"; type: "int" }
              }
              Method { name: "start" }
          }
          Component { name: "QEasingCurve"; prototype: "QDeclarativeEasingValueType" }
      }
      

      With Qt 5.2.1 MSVC2010 (ANGLE):

      %QTDIR%\bin\qml1plugindump -path ./MyItemComponent > ./MyItemComponent/plugins.qmltypes

      import QtQuick.tooling 1.1
      
      // This file describes the plugin-supplied types contained in the library.
      // It is used for QML tooling purposes only.
      //
      // This file was auto-generated with the command 'E:\Qt\Qt5.2.1\5.2.1\msvc2010\bin\qml1plugindump -path ./MyItemComponent'.
      
      Module {
          Component {
              name: "MyItem"
              defaultProperty: "data"
              prototype: "QDeclarativeItem"
              exports: ["MyItem 1.0"]
              exportMetaObjectRevisions: [0]
              Method { name: "start" }
          }
          Component { name: "QEasingCurve"; prototype: "QDeclarativeEasingValueType" }
      }
      

      As you see signal definition is missing.

      All related source code you can find in attachment.

      Attachments

        1. QmlExamplePlugin.7z
          12 kB
          Ilya Tkachenko
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert Alan Alpert
            ilyatk Ilya Tkachenko
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes