Results 1 to 3 of 3

Thread: getWidgetAt/getChildAt(global position) for elements under QGraphicsProxyWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default getWidgetAt/getChildAt(global position) for elements under QGraphicsProxyWidget

    Hello folks,

    I'm looking for a way to retrieve what widget is under position x,y including the ones inside QGraphicsProxyWidgets.
    QApplication and QWidget's methods return the scene widget instead of the widget inside it.

    If that's not possible.. if there's a way to post a mouse event "globally" that will reach the children widget at certain position, that would do the trick. I'm using postEvent, but I have to pass the target widget, so I have to find that widget first.

    Thanks a lot for any help
    Last edited by lgvier; 24th April 2009 at 09:17.

Similar Threads

  1. QTextEdit restore cursor position
    By artur231 in forum Qt Programming
    Replies: 3
    Last Post: 15th May 2014, 22:02
  2. position of an item in a QStringList
    By jaca in forum Newbie
    Replies: 4
    Last Post: 29th May 2008, 05:49
  3. QGraphicsView: Dialog Position Doubt
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2007, 17:48

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.