Results 1 to 5 of 5

Thread: A work flow explanation of QPaint ?

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

    Default A work flow explanation of QPaint ?

    I would want to know the work flow of QPaint.
    The documentation does not talk about the order of the events.
    Anyone can indicate me to some link ?
    Thanks

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

    Default Re: A work flow explanation of QPaint ?

    Could you say what "events" are you referring to? I understand that by "QPaint" you mean QPainter?
    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. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: A work flow explanation of QPaint ?

    Yes QPainter:
    The events I refer are about what happens during the proccess of paint or update a widget? (and if there is a way of 'play' with some of them)
    In particular I want to know if there is a way (an easy way) of to draw the widget avoiding the previous 'clear' or 'erase'.

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

    Default Re: A work flow explanation of QPaint ?

    So maybe your question should be "how to avoid erasing widget contents during repaint" instead of "a work flow explanation of QPaint"?

    Usually if we want something like this, we draw to a pixmap instead of the widget and in the paint event only render the pixmap to the widget.
    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.


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

    Default Re: A work flow explanation of QPaint ?

    Ok, thank you

Similar Threads

  1. explanation for Qstring to int
    By qtlinuxnewbie in forum Newbie
    Replies: 1
    Last Post: 11th February 2010, 06:52
  2. Replies: 7
    Last Post: 2nd July 2009, 17:35
  3. QTDesigner + QPaint [QT 4.4]
    By pippofrank in forum Qt Programming
    Replies: 10
    Last Post: 13th December 2008, 17:45
  4. Explanation to Image Formats
    By sincnarf in forum Qt Programming
    Replies: 13
    Last Post: 6th July 2007, 17:02
  5. sms flow in qtopia 4.1.4
    By awalesminfo in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th December 2006, 13:34

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.