Results 1 to 5 of 5

Thread: I want to draw items with opengl in a scrolling panel.

  1. #1
    Join Date
    Feb 2008
    Posts
    36
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    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 07:15.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: I want to draw items with opengl in a scrolling panel.

    Insert a QGLWidget in a QScrollArea.

  3. #3
    Join Date
    Feb 2008
    Posts
    36
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    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.

  5. #5
    Join Date
    Jan 2006
    Posts
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.