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. Call Qt.createComponent() with a plugin type

Call Qt.createComponent() with a plugin type

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlplugin
1 Posts 1 Posters 470 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.
  • W Offline
    W Offline
    WScape
    wrote on last edited by
    #1

    Hi,

    Is it possible to dynamically create QML components with a type provided by a plugin ?

    For example, I'd like to use a code like this :

    var comp = Qt.createComponent('QtQuick.Controls.SpinBox', ...)
    

    instead of :

    var obj = Qt.createQmlObject("import QtQuick.Controls 1.4; SpinBox {}", ...)
    

    Thanks !

    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