Call Qt.createComponent() with a plugin type

  • 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 !

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.