Results 1 to 2 of 2

Thread: paintEvent in eventFilter

  1. #1
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default paintEvent in eventFilter

    Hi guys!
    i install an evetFilter on a widget from a qobject. in the eventFilter function i catch the paintEvent and do it in the object. but it doesn't paint anything onto the widget... i use a variable of the widget, to set the paintDevice.

    QPainter p(privateWidget//privateWidget is the widget with the eventFilter installed);

    What are im making wrong?

  2. #2
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: paintEvent in eventFilter

    hehe^^ solved by myself..........

Similar Threads

  1. painting a widget outside a paintEvent
    By jayw710 in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2007, 00:18
  2. Replies: 3
    Last Post: 27th November 2006, 10:56
  3. Replies: 2
    Last Post: 26th April 2006, 11:43
  4. New thread to handle paintEvent
    By bitChanger in forum Qt Programming
    Replies: 1
    Last Post: 9th March 2006, 22:41
  5. Replies: 12
    Last Post: 5th February 2006, 11: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.