Results 1 to 3 of 3

Thread: How to get mouse click position of QLabel which is a child of QMainWindow in PyQt5

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    512
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to get mouse click position of QLabel which is a child of QMainWindow in PyQt

    Hi, have a lot at the different coordinate mapping functions like QWidget::mapFromGlobal(), QWidget::mapFromParent(), etc.

    Ginsengelf

  2. The following user says thank you to Ginsengelf for this useful post:

    AshishGupta (19th June 2018)

Similar Threads

  1. Replies: 0
    Last Post: 19th August 2015, 08:44
  2. Get mouse position on click?
    By N3wb in forum Qt Programming
    Replies: 2
    Last Post: 21st August 2010, 23:33
  3. how to get the position of mouse click on a label
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2010, 09:14
  4. Word at mouse click position in QGraphicsTextItem
    By pherthyl in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2008, 04:56
  5. Clearing a QLabel since the mouse position
    By SkripT in forum Qt Programming
    Replies: 10
    Last Post: 18th January 2006, 18:23

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.