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