Results 1 to 1 of 1

Thread: MouseEvent co-ordinates error!!!

  1. #1
    Join Date
    Jan 2013
    Location
    Bangalore, India
    Posts
    36
    Thanks
    9
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question MouseEvent co-ordinates error!!!

    Hello Everyone,

    I am trying to find the co-ordinates of an image inside Qlabel when Mouse press and Mouse release event occurs. Also I am drawing a rectangle with the Mouse press and release event using QRubberBand. My problem now is I am getting the same co-ordinates for Mouse press and release event and whereever i press and release mouse, it is showimg me the same co-ordinates. I dont know where I am going wrong. Some suggestion on this will be really helpful for me.

    Plz find the result i am getting and I herewith attach my main code.

    One more thing is that, I want Mouse press and release event only inside the QLabel. suggestion on that too will be helpful for me.


    Thanks for your valuable time and have a nice day!!!

    Jakr13
    Attached Images Attached Images
    Attached Files Attached Files

Similar Threads

  1. qt mouseEvent
    By lapdx in forum Qt Programming
    Replies: 0
    Last Post: 8th November 2012, 14:37
  2. Get Co-ordinates Values
    By amitpatel22 in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2011, 12:12
  3. Get Co-ordinates
    By amitpatel22 in forum Qt Programming
    Replies: 1
    Last Post: 11th June 2011, 10:07
  4. Replies: 4
    Last Post: 26th November 2010, 11:55
  5. Replies: 11
    Last Post: 11th October 2007, 17:34

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.