Results 1 to 4 of 4

Thread: How to draw dynamic new information on painter. (moving elements )

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to draw dynamic new information on painter. (moving elements )

    You can set logical drawing ops if you're drawing over a QImage; see QPainter::setCompositionMode. XOR mode is not longer available for ordinary drawing; the rationale is that modern graphics engines are so fast that there is no downside to simply caching the original background and drawing on top of it. This also makes color rendering more sane.

    I'm not sure I agree with this, but it's the technique used in Qwt for rubberbanding.

  2. The following user says thank you to SixDegrees for this useful post:

    tonnot (26th July 2011)

  3. #2
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to draw dynamic new information on painter. (moving elements )

    Thank you very much

Similar Threads

  1. Replies: 4
    Last Post: 4th March 2011, 08:43
  2. Replies: 0
    Last Post: 24th May 2010, 12:19
  3. Draw dynamic curve with various colors...
    By jiapei100 in forum Qwt
    Replies: 0
    Last Post: 25th October 2009, 03:31
  4. painter's drawPie() function how to draw few sensible PIEZ..
    By salmanmanekia in forum Qt Programming
    Replies: 15
    Last Post: 31st August 2008, 16:52
  5. use Qpainter to draw lines + problem in my painter
    By ReSu in forum Qt Programming
    Replies: 4
    Last Post: 5th March 2008, 15:44

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
  •  
Qt is a trademark of The Qt Company.