Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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