Results 1 to 2 of 2

Thread: grabMouse() on QGraphicsWidget()

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default grabMouse() on QGraphicsWidget()

    hi friends,

    i came across a problem in setting grabMouse() on QGraphicsWidget itemWidget

    itemWidget is having a proxywidget added to it as child .. now in scene i set itemWidget ->grabMouse() ..

    after grabMouse() .. the entire mouseEvent shift to itemWidget .. keypressEvent return true ..

    but the proxyWidget .. its child is not getting the mouseClick .. i set

    proxyWidget->setFocusPolicy(Qt::ClickFocus);

    but same thing is happening .. how to shift the whole focus to the child .. please help ...
    "Behind every great fortune lies a crime" - Balzac

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: grabMouse() on QGraphicsWidget()

    can any one please help me some information to change focus of mouse grab to its child of the item ..
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. QGraphicsWidget - How does it work?
    By been_1990 in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2009, 13:15
  2. QGraphicsWidget vs. QGraphicsRectItem
    By Bill in forum Newbie
    Replies: 3
    Last Post: 27th July 2009, 09:02
  3. background color for QGraphicsWidget
    By QAir in forum Qt Programming
    Replies: 1
    Last Post: 16th July 2009, 14:52
  4. QwebPage within a QGraphicsWidget
    By Osprey in forum Qt Programming
    Replies: 0
    Last Post: 16th June 2009, 17:32
  5. grabMouse() and grabKeyboard()
    By Carlsberg in forum Qt Programming
    Replies: 0
    Last Post: 4th June 2009, 08:55

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.