Results 1 to 2 of 2

Thread: QPainter immediate drawing outside paint event

  1. #1

    Default QPainter immediate drawing outside paint event

    Is there anyway to draw on a widget outside a painter event? QPainter seems usable only in response to paint event.

    In Windows programming, one can simply obtain the client DC of a window and draw whatever you want immediately. MFC has a CClientDC class. This kind of immediate drawing is useful in some cases where custom drawing is needed during a drag & drop operation.

    Thanks for sharing any ideas.

  2. #2
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QPainter immediate drawing outside paint event


Similar Threads

  1. Replies: 1
    Last Post: 5th October 2010, 17:08
  2. How to paint (QPainter) on a label ?
    By d@nyal in forum Newbie
    Replies: 1
    Last Post: 29th May 2010, 18:39
  3. Timer event & paint event, priority
    By Teuniz in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 13:33
  4. Paint event function in key press event
    By soumya in forum Qt Programming
    Replies: 6
    Last Post: 2nd February 2010, 12:40
  5. Drawing a widget in QItemDelegate's paint method
    By darkadept in forum Qt Programming
    Replies: 17
    Last Post: 11th August 2009, 05:15

Tags for this Thread

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.