Solved How to open the QML Plugin imported in Editor mode
-
I created a QML extension plugin and exposed a DrawWave.Qml file .
I imported my "Waveinterface " module in a new Project,
Able to acess all the properties of the drawwave.qml file ,but still it shows invalid property error in editor mode.
So i used " // @disable-check M16" to suppess the error in editor modeimport QtQuick.Window 2.11
import QtQuick 2.11
import WaveInterface 1.0Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
DrawWave{
id:plotwave
// @disable-check M16
x:20
// @disable-check M16
y:20
// @disable-check M16
pixelcolor:"yellow"
// @disable-check M16
titlecolor:"grey"
// @disable-check M16
textcolor:"grey"
// @disable-check M16
}
} -
thanks ,it worked for me :)
-
@Lucky93
for what platform is the plugin compiled?QtCreator tries to load the plugin to inspect it's types it is exposing. Of course thats not always possible, e.g. when running on a Windows system and try to load an Android plugin.
In such a case you need to provide a .qmltypes file along with your plugin. The qmltypes file must also be noted in the plugin's qmldir file!
-
@raven-worx I have created plugin for windows platform and trying to use in another project.
-
@Lucky93
Still try to create a .qmltypes file -
@raven-worx
btw. also it's important that the plugin is compiled in release mode in order to let QtCreator load it. -
thanks ,it worked for me :)