Qml QtDesktop and a custom GLWidget.
-
wrote on 8 Feb 2013, 00:13 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?
-
wrote on 8 Feb 2013, 06:58 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? -
wrote on 8 Feb 2013, 07:39 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 -
wrote on 8 Feb 2013, 15:44 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
-
wrote on 8 Feb 2013, 17:02 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/5