The Ultimate Qt Community site
Home News Forum Wiki Contest FAQ Links

Go Back   Qt Centre Forum > Qt > Newbie

Newbie Newbie to Qt? Ask your questions here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st April 2008, 08:00
validator validator is offline
Novice
 
Join Date: Feb 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Default I want to draw items with opengl in a scrolling panel.

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.

Last edited by validator; 1st April 2008 at 08:15.
Reply With Quote
  #2  
Old 1st April 2008, 09:00
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,663
Thanks: 3
Thanked 1,640 Times in 1,591 Posts
Default Re: I want to draw items with opengl in a scrolling panel.

Insert a QGLWidget in a QScrollArea.

Reply With Quote
  #3  
Old 1st April 2008, 13:06
validator validator is offline
Novice
 
Join Date: Feb 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: I want to draw items with opengl in a scrolling panel.

How can I insert QGLWidget in a ScroolArea ,I can not understand.Please Can you explain it

Reply With Quote
  #4  
Old 1st April 2008, 13:08
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,663
Thanks: 3
Thanked 1,640 Times in 1,591 Posts
Default Re: I want to draw items with opengl in a scrolling panel.

In that case I suggest you start by at least skeeming through the tutorial present in Qt's documentation.

Reply With Quote
  #5  
Old 9th May 2008, 22:56
firas's Avatar
firas firas is offline
Novice
 
Join Date: Jan 2006
Qt products used: Qt3, Qt4, Qt/Embedded, Qtopia
Qt platforms used: MacOS, Unix/X11
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
Arrow Re: I want to draw items with opengl in a scrolling panel.

ahoy,
check the the following thread:
http://www.qtcentre.org/forum/f-qt-p...ghlight=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

Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:07.

Powered by vBulletin Version 3.7.1 Copyright ©2000 - 2008, Jelsoft Enterprises Ltd., vRewrite 1.5 SEOed URLs completed by Tech Help Forum and Chalo Na.
© 2006–2008 Qt Centre - The Ultimate Qt Community site
Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.