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. How to set QML import DLL component path?
Forum Updated to NodeBB v4.3 + New Features

How to set QML import DLL component path?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 2 Posters 1.1k 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.
  • M Offline
    M Offline
    mirro
    wrote on last edited by mirro
    #1
    qrc:///main.qml:36:1: "./OSG": no such directory
    

    Screenshots link

    #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();
    }
    
    
    ODБOïO 1 Reply Last reply
    0
    • M mirro
      qrc:///main.qml:36:1: "./OSG": no such directory
      

      Screenshots link

      #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();
      }
      
      
      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      1
      • ODБOïO ODБOï

        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

        M Offline
        M Offline
        mirro
        wrote on last edited by mirro
        #3

        @LeLev Can you provide an example of a QML import DLL component?

        ODБOïO 1 Reply Last reply
        0
        • M mirro

          @LeLev Can you provide an example of a QML import DLL component?

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          @mirro there is an example in the last link

          M 1 Reply Last reply
          1
          • ODБOïO ODБOï

            @mirro there is an example in the last link

            M Offline
            M Offline
            mirro
            wrote on last edited by mirro
            #5

            @LeLev
            Can't open the link..
            Is there an official qt example of a QML import DLL component?

            ODБOïO 1 Reply Last reply
            0
            • M mirro

              @LeLev
              Can't open the link..
              Is there an official qt example of a QML import DLL component?

              ODБOïO Offline
              ODБOïO Offline
              ODБOï
              wrote on last edited by
              #6

              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..

              M 1 Reply Last reply
              1
              • ODБOïO ODБOï

                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..

                M Offline
                M Offline
                mirro
                wrote on last edited by mirro
                #7

                @LeLev Thanks for your q&A, how should I install it?

                ODБOïO 1 Reply Last reply
                0
                • M mirro

                  @LeLev Thanks for your q&A, how should I install it?

                  ODБOïO Offline
                  ODБOïO Offline
                  ODБOï
                  wrote on last edited by
                  #8

                  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

                  M 1 Reply Last reply
                  1
                  • ODБOïO ODБOï

                    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

                    M Offline
                    M Offline
                    mirro
                    wrote on last edited by mirro
                    #9

                    @LeLev
                    Is this the format for uploading pictures?
                    !![alt text] ([img]https://i.imgur.com/d3l6XQ5.png[/img])

                    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