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. Qml QtDesktop and a custom GLWidget.

Qml QtDesktop and a custom GLWidget.

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.5k Views
  • 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
    Martell Malone
    wrote on last edited by
    #1

    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
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      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
      0
      • J Offline
        J Offline
        Jens
        wrote on last edited by
        #3

        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
        0
        • M Offline
          M Offline
          Martell Malone
          wrote on last edited by
          #4

          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
          0
          • M Offline
            M Offline
            Martell Malone
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved