Qt Forum

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

    Qml QtDesktop and a custom GLWidget.

    QML and Qt Quick
    3
    5
    1261
    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.
    • M
      Martell Malone last edited by

      Hi guys,

      I've been messing around with the new desktop qml bindings and I have a particular case that I want inquire about.

      I have a class that extends GLWidget, will I have to write bindings for this?

      Also Is there bindings for a GLWidget done already?

      1 Reply Last reply Reply Quote 0
      • T
        tzander last edited by

        Not sure what it is you are asking, the two things are completely different and have little to do with each other.
        What is it that you want to achieve?

        1 Reply Last reply Reply Quote 0
        • J
          Jens last edited by

          Yes these are unrelated. But what you probably need can be found under the scenegraph examples in qtdeclarative. Try looking at "openglunderqml"
          https://qt.gitorious.org/qt/qtdeclarative/trees/3ddf7f1cf638091c8c7c7380bf0414dcc1145d2c/examples/quick/scenegraph/openglunderqml

          1 Reply Last reply Reply Quote 0
          • M
            Martell Malone last edited by

            As I asked you said to me via email. I'm going to define the question properly.

            I have a whole game engine that just needs a render context to draw to so I need to get the render context of a small area in a qml window but I believe its only possible to get the rendering context of the whole window.

            This is where my problem lies.

            I'll do some more digging into the openglunderqml sample and see if I can get anything to work

            1 Reply Last reply Reply Quote 0
            • M
              Martell Malone last edited by

              I have successfully created a project that merges both but the open gl is not being displayed to the window?

              "WIP":https://www.dropbox.com/s/2n813f6uu14g4d9/ApplicationTemplate.zip

              EDIT: I think it has something to do with QTDesktop redrawing over our window

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