Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick Extras is not appearing not appearing in QML Designer Canvas

QtQuick Extras is not appearing not appearing in QML Designer Canvas

Scheduled Pinned Locked Moved QML and Qt Quick
qtquickqtquick.extrascustompluginqt creator 3.4qt5.5
5 Posts 2 Posters 4.4k Views
  • 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.
  • CybrumC Offline
    CybrumC Offline
    Cybrum
    wrote on last edited by
    #1

    Hello friends,
    I am trying to use QtQuick.Extras 1.4. But QML Designer canvas shows blank rectangles.
    I found the below messages in WinDbg:
    QuickDesigner: Cannot create an object of type "QtQuick.Extras/DelayButton 1,0" - type isn't known to declarative meta type system
    QuickDesigner: Cannot create an object of type "QtQuick.Extras/CircularGauge 1,0" - type isn't known to declarative meta type system

    I am also facing same issues with my custom controls.
    Any help is appreciated.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      ThomasHartmann
      wrote on last edited by
      #2

      Please have a look here: http://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html

      Running QML Modules in Qt Quick Designer

      The QtQuick Extras are not part of Qt Creator in your case. Therefore you have to build the qmlpuppet for the Qt you use.
      Custom QML plugins that are build with that Qt should work then, too.

      CybrumC 1 Reply Last reply
      0
      • T ThomasHartmann

        Please have a look here: http://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html

        Running QML Modules in Qt Quick Designer

        The QtQuick Extras are not part of Qt Creator in your case. Therefore you have to build the qmlpuppet for the Qt you use.
        Custom QML plugins that are build with that Qt should work then, too.

        CybrumC Offline
        CybrumC Offline
        Cybrum
        wrote on last edited by Cybrum
        #3

        @ThomasHartmann Thanks for the suggestions. Can you please explain how to build qmlpuppet for qtquick.extra / mycustomcontrols ? I found two projects qmlpuppet and qml2puppet inside qt-creator/src/tools.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          ThomasHartmann
          wrote on last edited by
          #4

          The puppet is build automatically for the configured Kit (if it is a desktop kit) once you enable the setting in the options.
          Options/QtQuick/QtQuick Designer/Emulation Layer/Use QML emulation layer which is built by selected Qt.

          By default, a fallback emulation layer is provided by Qt Creator and built with the same Qt version as Qt Creator. Therefore, your QML modules will mostly not work out of the box.

          To use an emulation layer that is built with the Qt configured in the build and run kit for the project, select Tools > Options > Qt Quick > Qt Quick Designer > Use QML emulation layer which is built by the selected Qt radio button. Qt Creator builds the emulation layer when you select the Design mode.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            ThomasHartmann
            wrote on last edited by
            #5

            I just tried the latest Qt 5.5 release an the Qt Creator that comes with this release. At least on Windows the QtQuick.Extras work out of the box. If you use an older Qt Creator the Extras are not part of Qt Creator and you have to build the qml2puppet as described above.

            For your own components which use C++ you should always build the qml2puppet.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved