Results 1 to 2 of 2

Thread: Any trick to paint a widget outside a paintevent ?

Hybrid View

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

    Default Any trick to paint a widget outside a paintevent ?

    For example using Qpixmap ? Using painters ?

    Any help ?

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

    Default Re: Any trick to paint a widget outside a paintevent ?

    You can paint on a pixmap and render the pixmap to the widget during paintEvent.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    tonnot (24th March 2011)

Similar Threads

  1. Add widget as a content of QPixmap?
    By talk2amulya in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2009, 07:53
  2. Saving the widget class as a QPixmap
    By zgulser in forum Newbie
    Replies: 11
    Last Post: 2nd February 2009, 10:48
  3. Replies: 4
    Last Post: 28th August 2008, 14:13
  4. Replies: 1
    Last Post: 21st August 2008, 08:44
  5. Replies: 5
    Last Post: 9th April 2007, 15:26

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.