Results 1 to 4 of 4

Thread: paint events

  1. #1
    Join Date
    May 2009
    Posts
    55
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default paint events

    Is it possible to have 2 paint events? One for the main window and another one for a dialog.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: paint events

    Each QWidget has its own paint event.
    What do you want to do ?

  3. #3
    Join Date
    May 2009
    Posts
    55
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: paint events

    I wish to load an image from disk and set boundaries for the image by drawing a rectangle over the loaded image. I will then record the pertinent rectangle data (x,y,width,height) as these will serve as the accepted boundaries.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: paint events

    There is an image viewer example in Qt Demos,,, Have you read its documentation ?

Similar Threads

  1. Immediate paint
    By zgulser in forum Qt Programming
    Replies: 11
    Last Post: 15th March 2010, 07:34
  2. Problem with QGLWidget paint events in Qt 4.6
    By Wali in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2009, 09:41
  3. Replies: 0
    Last Post: 3rd March 2009, 15:38
  4. How to distinguish paint events
    By naruto_9w in forum Qt Programming
    Replies: 6
    Last Post: 18th January 2009, 11:27
  5. paint
    By xyzt in forum Qt Programming
    Replies: 3
    Last Post: 22nd March 2008, 18:22

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.