Solved How to set QML import DLL component path?
-
qrc:///main.qml:36:1: "./OSG": no such directory
#include <QGuiApplication> #include <QtQuick/QQuickView> #include <QGuiApplication> #include <QQmlApplicationEngine> int main(int argc, char **argv) { QGuiApplication app(argc, argv); QQuickView view; view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///main.qml")); view.show(); return app.exec(); }
-
hi @mirro
this is duplicate of https://forum.qt.io/topic/115788/how-does-qml-set-the-import-component-path
this links might help i hope
https://forum.qt.io/topic/30707/demo-integrating-openscenegraph-with-qt-quick
https://bitbucket.org/leon_manukyan/qtquick2osgitem/src/master/
https://github.com/podsvirov/osgqtquick/wiki/osgQtQuick-2.0#welcome -
@LeLev Can you provide an example of a QML import DLL component?
-
@mirro there is an example in the last link
-
@LeLev
Can't open the link..
Is there an official qt example of a QML import DLL component? -
hi
@mirro said in How to set QML import DLL component path?:Can't open the link..
why you can't ?
can you open the first one ?import osgQtQuick 1.0
you have to clone the lib, build and install it in order to import
you did a 3rd topic asking the same question..
-
@LeLev Thanks for your q&A, how should I install it?
-
can you answer to me too ?
why you can't open the link?@mirro said in How to set QML import DLL component path?:
how should I install it?
it is explained on github
-
@LeLev
Is this the format for uploading pictures?
!![alt text] ([img]https://i.imgur.com/d3l6XQ5.png[/img])