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. C++ Plugin Creating component editable in QML Visual editor
Forum Update on Monday, May 27th 2025

C++ Plugin Creating component editable in QML Visual editor

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 2.1k 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.
  • G Offline
    G Offline
    gmedini
    wrote on 29 Mar 2011, 22:36 last edited by
    #1

    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
    0

    1/1

    29 Mar 2011, 22:36

    • Login

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