PDA

View Full Version : Mixing Qt and OpenGl - Best approach



scarecr0w132
16th February 2015, 07:13
Hello,

I just finished watching developer days 2013 talk on "Integrating QtQuick with 3D renderers".

Currently I use a 3D engine in QGraphicsView by re implementing drawBackground function and doing custom rendering there. This works quite well for me. After watching the talk I realize there are other faster and robust approaches.
If you where able to use any of the approaches for mixing OpenGl code (specifically mixing 3D engine) which one would you choose in terms of reliability and speed? I can use Qt Quick or Qt widgets.

Thanks

wysota
16th February 2015, 07:17
First of all I would upgrade to Qt5 and QtQuick 2 instead of Graphics View.

scarecr0w132
16th February 2015, 08:45
First of all I would upgrade to Qt5 and QtQuick 2 instead of Graphics View.

Hello,

What is the best approach (reliability and speed) in Qt5/ Qt Quick 2 for using OpenGl?

Thanks

wysota
16th February 2015, 09:12
Connecting to beforeRendering() signal and drawing your scene there.