Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Automatic type dump of QML module failed

    General and Desktop
    qtcreator qml c++ module
    1
    1
    2630
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sosun
      sosun last edited by

      I want to import external modules. For this I've edited importPaths like importPaths: [ "/usr/lib/qt/qml" ]. It's the folder where my modules located, here's the proof:

      1st screen

      link text

      2nd screen

      link text

      3rd screen

      link text

      Here's the example of Components' s qmldir:

      module org.kde.plasma.components
      
      plugin plasmacomponentsplugin
      
      BusyIndicator 2.0 BusyIndicator.qml
      Button 2.0 Button.qml
      ButtonColumn 2.0 ButtonColumn.qml
      ButtonGroup 2.0 ButtonGroup.js
      ButtonRow 2.0 ButtonRow.qml
      CheckBox 2.0 CheckBox.qml
      ComboBox 2.0 ComboBox.qml
      CommonDialog 2.0 CommonDialog.qml
      ContextMenu 2.0 ContextMenu.qml
      Dialog 2.0 Dialog.qml
      Highlight 2.0 Highlight.qml
      Label 2.0 Label.qml
      ListItem 2.0 ListItem.qml
      ModelContextMenu 2.0 ModelContextMenu.qml
      Page 2.0 Page.qml
      PageStack 2.0 PageStack.qml
      ProgressBar 2.0 ProgressBar.qml
      QueryDialog 2.0 QueryDialog.qml
      RadioButton 2.0 RadioButton.qml
      ScrollBar 2.0 ScrollBar.qml
      SectionScroller 2.0 SectionScroller.qml
      SelectionDialog 2.0 SelectionDialog.qml
      Slider 2.0 Slider.qml
      Sheet 2.0 Sheet.qml
      Switch 2.0 Switch.qml
      TabBar 2.0 TabBar.qml
      TabButton 2.0 TabButton.qml
      TabGroup 2.0 TabGroup.qml
      TextArea 2.0 TextArea.qml
      TextField 2.0 TextField.qml
      ToolBar 2.0 ToolBar.qml
      ToolBarLayout 2.0 ToolBarLayout.qml
      ToolButton 2.0 ToolButton.qml
      
      

      The output in QtCreator at the opening project:

      Warnings while parsing QML type information of /home/john/Qt5.5.0/5.5/gcc_64/qml:
      <dump of /home/john/Qt5.5.0/5.5/gcc_64/qml>:1:24: Reading only version 1.1 parts.
      <dump of /home/john/Qt5.5.0/5.5/gcc_64/qml>:10:5: Expected only Component and ModuleApi object definitions.
      
      Warnings while parsing QML type information of /usr/lib/qt/qml/QtPositioning:
      /usr/lib/qt/qml/QtPositioning/plugins.qmltypes:1:24: Reading only version 1.1 parts.
      /usr/lib/qt/qml/QtPositioning/plugins.qmltypes:10:5: Expected only Component and ModuleApi object definitions.
      
      Warnings while parsing QML type information of /usr/lib/qt/qml/QtLocation:
      /usr/lib/qt/qml/QtLocation/plugins.qmltypes:1:24: Reading only version 1.1 parts.
      /usr/lib/qt/qml/QtLocation/plugins.qmltypes:10:5: Expected only Component and ModuleApi object definitions.
      
      

      The output in QtCreator when double-click on main.qml:

      QML module does not contain information about components contained in plugins.
      
      Module path: /usr/lib/qt/qml/org/kde/plasma/components
      See "Using QML Modules with Plugins" in the documentation.
      
      Automatic type dump of QML module failed.
      Errors:
      "/home/john/Qt5.5.0/5.5/gcc_64/bin/qmlplugindump" returned exit code 3.
      Arguments: -nonrelocatable org.kde.plasma.components 2.0 /usr/lib/qt/qml
      
      QObject: Cannot create children for a parent that is in a different thread.
      (Parent is QGuiApplication(0x7ffede884280), parent's thread is QThread(0xc32330), current thread is QThread(0xc3e3a0)
      
      QObject: Cannot create children for a parent that is in a different thread.
      (Parent is QGuiApplication(0x7ffede884280), parent's thread is QThread(0xc32330), current thread is QThread(0xc3e3a0)
      
      QObject: Cannot create children for a parent that is in a different thread.
      (Parent is QGuiApplication(0x7ffede884280), parent's thread is QThread(0xc32330), current thread is QThread(0xc3e3a0)
      
      QObject: Cannot create children for a parent that is in a different thread.
      (Parent is QGuiApplication(0x7ffede884280), parent's thread is QThread(0xc32330), current thread is QThread(0xc3e3a0)
      
      QObject::installEventFilter(): Cannot filter events for objects in a different thread.
      Could not find any platform plugin
      
      Icon theme "oxygen" not found.
      Icon theme "oxygen" not found.
      
      QQmlComponent: Component is not ready
      
      QObject: Cannot create children for a parent that is in a different thread.
      (Parent is QGuiApplication(0x7ffede884280), parent's thread is QThread(0xc32330), current thread is QThread(0xc3e3a0)
      
      QObject::installEventFilter(): Cannot filter events for objects in a different thread.
      

      The same output goes for every module and it's absolutely same(excluding the names), therefore I won't include it here for readability purposes

      1 Reply Last reply Reply Quote 0
      • First post
        Last post