Results 1 to 5 of 5

Thread: Starting Point of Rectangle in RubberBand implementation

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    37
    Thanked 53 Times in 40 Posts

    Default Re: Starting Point of Rectangle in RubberBand implementation

    You are passing imageLabel as parent of rubberband instead of this(ImageMarker) and hence the coordinates differ. Try setting this as rubberBand's parent.
    Another way is to map event->pos() to the imageLabel if you want rubberBand's parent to be imageLabel.

    Please wrap the code you post with code tags
    Last edited by Gopala Krishna; 10th July 2007 at 14:38.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

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.