Results 1 to 2 of 2

Thread: QGLWidget in QGraphicsProxyWidget

  1. #1
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGLWidget in QGraphicsProxyWidget

    I have to use QGLwidget in QGraphicsProxyWidget. However it is clearly mentioned in documentation, that it is not possible since qglwidget paints directly to the screen or something.
    Going through this thread http://www.qtcentre.org/threads/1710...QGraphicsScene it is said i need to add a custom widget with a GL context where you will render its content to a pixel buffer and then render the resulting pixmap as the item in graphics view.
    But I am not able to understand what is GL context or how do I go ahead GL painting into image, and using image to paint on widget.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QGLWidget in QGraphicsProxyWidget

    But I am not able to understand what is GL context
    http://www.opengl.org/wiki/Context
    how do I go ahead GL painting into image, and using image to paint on widget.
    See QPainter documentation for that.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Move QGraphicsProxyWidget
    By RThaden in forum Qt Programming
    Replies: 14
    Last Post: 17th September 2016, 14:01
  2. QGraphicsProxyWidget and mouseEvents
    By qlands in forum Qt Programming
    Replies: 2
    Last Post: 11th November 2010, 17:15
  3. Replies: 1
    Last Post: 30th June 2010, 14:13
  4. help positioning QGraphicsProxyWidget?
    By Scott Shiff in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2010, 23:13
  5. QGraphicsProxyWidget
    By QbelcorT in forum Qt Programming
    Replies: 0
    Last Post: 29th November 2008, 08:21

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.