Results 1 to 2 of 2

Thread: QGLWidget and QPainter question

  1. #1
    Join Date
    Jan 2011
    Posts
    55
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QGLWidget and QPainter question

    I've read the OverPainting example but I'm a bit confused.

    If I ahve a 3D object in my QGLWidget, can I use QPainter to actually paint pixels on that model, meaning painting 3D as you would do in ZBrush, for example?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    84
    Thanks
    7
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QGLWidget and QPainter question

    if you paint on a qglwidget with qpainter you paint 2d-elements as you would paint on a glass pane lying over your screen. you're not
    painting in 3D on a 3D-object.
    regards, jh

Similar Threads

  1. Replies: 1
    Last Post: 24th January 2010, 11:15
  2. QPainter on QGLWidget
    By h123 in forum Qt Programming
    Replies: 2
    Last Post: 17th November 2008, 12:51
  3. about QGLWidget and QPainter
    By showhand in forum Qt Programming
    Replies: 5
    Last Post: 12th November 2008, 10:45
  4. [qt4,win,g++] QPainter on a QGLWidget
    By jh in forum Qt Programming
    Replies: 4
    Last Post: 28th July 2008, 06:29
  5. QGLWidget, QPainter and shared contexts
    By bamboo in forum Qt Programming
    Replies: 7
    Last Post: 17th April 2007, 18:11

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.