Results 1 to 13 of 13

Thread: Paint event does not Rescale with label maximise

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2013
    Posts
    58
    Thanks
    26
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Windows

    Question Paint event does not Rescale with label maximise

    Using qt Creator

    Created window with label
    Uploads image to label
    I set the the label to "expanding" so its size increases as window maximizes
    The image is set to "scaled" -> also increases with label

    Using QPainter I am able to draw points on image & lines between them.
    The problem is Qpainter does not increase as image expands, Hence my
    points then are not placed in the correct location where initially clicked.


    Is there a Setting to change to scale the QPainter?
    Or is there another work around it
    #How?

    Ideas most welcome

    Thanks
    Kind Regards
    Last edited by ebsaith; 21st June 2013 at 07:53. Reason: updated contents

Similar Threads

  1. How to handle mousehover event on a label?
    By moiit in forum Qt Programming
    Replies: 5
    Last Post: 28th January 2011, 03:16
  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. QGraphicsTextItem and paint event
    By prashant in forum Qt Programming
    Replies: 0
    Last Post: 6th November 2009, 07:52

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
  •  
Qt is a trademark of The Qt Company.