Results 1 to 2 of 2

Thread: opengl help!!

  1. #1
    Join Date
    Jan 2007
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default opengl help!!

    hi all,

    I have implemented basic shapes using QGraphicsItem ,using normal painting. I want to
    achieve the same using opengl & I will have an option in the menu for opengl. If the
    user selects that option I want to redraw all the QGraphicItems using opengl. Is it possible? Can some body explain ?

    Thanks in advance,
    Rachana

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: opengl help!!

    Yes, it's possible. Set the viewport for your graphics view as QGLWidget. Take a look at the chips demo that comes with Qt, it does exactly that.

Similar Threads

  1. Qt and OpenGL
    By ToddAtWSU in forum Qt Programming
    Replies: 8
    Last Post: 15th June 2006, 21:37
  2. OpenGl 2d
    By Lele in forum Qt Programming
    Replies: 10
    Last Post: 9th May 2006, 21:37
  3. Qt's optimized OpenGL context switching
    By sverhoff in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2006, 16:40
  4. Example OpenGL project?
    By brcain in forum Qt Tools
    Replies: 9
    Last Post: 23rd February 2006, 21:17

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.