PDA

View Full Version : I want to draw items with opengl in a scrolling panel.



validator
1st April 2008, 07:00
Hi, I draw road a panel with opengl .That road is tall and I need to scrool the panel .How can I do it . is there any panel like taht in qt. if you have sampleor demo , can you share it.

wysota
1st April 2008, 08:00
Insert a QGLWidget in a QScrollArea.

validator
1st April 2008, 12:06
How can I insert QGLWidget in a ScroolArea ,I can not understand.Please Can you explain it

wysota
1st April 2008, 12:08
In that case I suggest you start by at least skeeming through the tutorial present in Qt's documentation.

firas
9th May 2008, 21:56
ahoy,
check the the following thread:
http://www.qtcentre.org/forum/f-qt-programming-2/t-qglwidget-qeventdispatcherglibprocessevents-performance-problem-12714.html/?highlight=OpenGL

it contains the working source code of a multi-threaded image viewing and manipulation program that uses QGLWidget with scrollbars. hope this spares you many hours of coding.
cheers