PDA

View Full Version : multiple Opengl Widgets:



manmohan
27th February 2009, 10:47
Hi,

I am trying to display 3 qglwidgets in a single widget arranged, I have written a program...

However, as I am a newbie to the Qtopengl programming I am unable to find the exact kind of error that I am doing in the program....

Any kind of assistance will help me out....

with a hint in the code....

here is the program that I have done it's in the below weblink: please check out and let me know:

http://www.qtcentre.org/forum/f-newbie-4/t-opengl-18733.html


Please help me out with this.....

Thank's
Mohan

john_god
27th February 2009, 14:04
You have used a paintGL inside each glwidget and that looks ok, but try to add a paintEvent to your main window class and put the code for displaying the qlwidget inside it instead of using the main window constructor. Also dont forget the opengl makecurrent issue, before each glwidget.

manmohan
2nd March 2009, 05:06
Thanks ...

I will try it and update it here ....

Thanks for the reply...