Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved import OpenGLUnderQML 1.0 not found

    QML and Qt Quick
    2
    4
    217
    Loading More Posts
    • 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.
    • S
      SpencerD last edited by

      Hello,

      I have been trying to import the OpenGLUnderQML 1.0 in my QML but get error "QML module not found (OpenGLUnderQML)". I am on a mac using Qt Creator 4.14.0
      Based on Qt 5.15.2 (Clang 11.0 (Apple), 64 bit). I see this Stack Exchange Post https://stackoverflow.com/questions/35352930/qt5-qml-module-is-not-installed/49326965#49326965 but it is over my head since I can not find a place to even dowload the missing qmldir I am after. Also the qt website

      I read these articles and it just didnt seem pertinent:
      https://doc.qt.io/qt-5/qtqml-modules-identifiedmodules.html

      https://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path

      There was a mention of " This import path, as returned by QQmlEngine::importPathList()," Also I am running in python so I assume this would be QQmlEngine.importPathList(). ( sidebar : why is it that even in the https://doc.qt.io/archives/qtforpython-5.12/PySide2/QtWidgets/QOpenGLWidget.html python docs the examples are still in C++)
      which somehow I am supposed to be able to run in a command line somewhere that isn't obvious in creator. Also when looking at the preferences/ QT Quick / Qt Quick Designer / QML emulation layer the fall back path (which was red) isnt even visible even after ( cmd shift period) so I dont see how that was ever working and I changed to use the top level build path as suggested in the stack exchange posts with no luck.

      I am also seeing that the multimedia qml import is selectable from the list in design mode but also has the same qml module not found error.

      Where do I download these missing QML files?
      Need a win here.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        This comes from a C++ example project and is generated as part of the compilation process.

        I do not know how it would translate to Python.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • S
          SpencerD last edited by

          https://doc.qt.io/qtforpython/overviews/qtquick-scenegraph-openglunderqml-example.html
          https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quick/scenegraph/openglunderqml?h=6.0
          The example I am looking at that started this topic is in the Qt for Python 6.0.1.
          Is this a broken description on the website and it is not actually do-able at the moment with Python?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            IIRC, the examples have not yet been all ported to Python. I currently do not know how this one can be translated.

            On thing you can do is check the bug report system to see if there's something related to these examples.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • First post
              Last post