Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    C++ Plugin Creating component editable in QML Visual editor

    QML and Qt Quick
    1
    1
    2045
    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.
    • G
      gmedini last edited by

      I'm trying to make a plugin that can be used in QML visual editor.
      I wrote the plugin deriving my class from QDeclarativeItem,in the plugin I insert a Qt widget (a QLCDNumber) using a proxy.
      I can use the component in QML, no problem, works as expected, syntax highlight, property works fine.
      If I try to edit with visual editor I see the component with the proper name, but if in the navigator I select the component I get in the property panel "none or multiple items selected".
      The component itself doesn't draw itself in the visual editor.
      Visual editor can load it since I've put the dll in the import directory of Qt.
      I've tried also to override the paint method, the methos is called in qml execution (qml viewer), again I don't see anything in output in visual editor.
      In QML visual editor the new qml class is not listed in the list of avalaible's class also.
      Probably I missed to write some part in deriving from QDeclarativeItem, trying to use the plugin samples from Nokia I get similar results so I don't know how to find the code missed.

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