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. How to open the QML Plugin imported in Editor mode
Forum Updated to NodeBB v4.3 + New Features

How to open the QML Plugin imported in Editor mode

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 2 Posters 866 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Lucky93
    wrote on last edited by
    #1

    I created a QML extension plugin and exposed a DrawWave.Qml file .
    I imported my "Waveinterface " module in a new Project,
    Able to acess all the properties of the drawwave.qml file ,but still it shows invalid property error in editor mode.
    So i used " // @disable-check M16" to suppess the error in editor mode

    import QtQuick.Window 2.11
    import QtQuick 2.11
    import WaveInterface 1.0

    Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")
    DrawWave{
    id:plotwave
    // @disable-check M16
    x:20
    // @disable-check M16
    y:20
    // @disable-check M16
    pixelcolor:"yellow"
    // @disable-check M16
    titlecolor:"grey"
    // @disable-check M16
    textcolor:"grey"
    // @disable-check M16
    }
    }

    raven-worxR 1 Reply Last reply
    0
    • L Offline
      L Offline
      Lucky93
      wrote on last edited by
      #6

      thanks ,it worked for me :)

      1 Reply Last reply
      0
      • L Lucky93

        I created a QML extension plugin and exposed a DrawWave.Qml file .
        I imported my "Waveinterface " module in a new Project,
        Able to acess all the properties of the drawwave.qml file ,but still it shows invalid property error in editor mode.
        So i used " // @disable-check M16" to suppess the error in editor mode

        import QtQuick.Window 2.11
        import QtQuick 2.11
        import WaveInterface 1.0

        Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
        DrawWave{
        id:plotwave
        // @disable-check M16
        x:20
        // @disable-check M16
        y:20
        // @disable-check M16
        pixelcolor:"yellow"
        // @disable-check M16
        titlecolor:"grey"
        // @disable-check M16
        textcolor:"grey"
        // @disable-check M16
        }
        }

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #2

        @Lucky93
        for what platform is the plugin compiled?

        QtCreator tries to load the plugin to inspect it's types it is exposing. Of course thats not always possible, e.g. when running on a Windows system and try to load an Android plugin.

        In such a case you need to provide a .qmltypes file along with your plugin. The qmltypes file must also be noted in the plugin's qmldir file!

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        L 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @Lucky93
          for what platform is the plugin compiled?

          QtCreator tries to load the plugin to inspect it's types it is exposing. Of course thats not always possible, e.g. when running on a Windows system and try to load an Android plugin.

          In such a case you need to provide a .qmltypes file along with your plugin. The qmltypes file must also be noted in the plugin's qmldir file!

          L Offline
          L Offline
          Lucky93
          wrote on last edited by
          #3

          @raven-worx I have created plugin for windows platform and trying to use in another project.

          raven-worxR 1 Reply Last reply
          0
          • L Lucky93

            @raven-worx I have created plugin for windows platform and trying to use in another project.

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #4

            @Lucky93
            Still try to create a .qmltypes file

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            raven-worxR 1 Reply Last reply
            0
            • raven-worxR raven-worx

              @Lucky93
              Still try to create a .qmltypes file

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #5

              @raven-worx
              btw. also it's important that the plugin is compiled in release mode in order to let QtCreator load it.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              1
              • L Offline
                L Offline
                Lucky93
                wrote on last edited by
                #6

                thanks ,it worked for me :)

                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