Results 1 to 2 of 2

Thread: Problem with pick a QGraphicsItem

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Problem with pick a QGraphicsItem

    Hi,

    I have a QGraphicsItem (say child) that is a child of another QGraphicsItem (say parent). I need to move the child item around the viewing area by mouse click and move. However, when I move the child outside the parent's boundingRect and release it, I can no longer pick the child and move it.

    I think the Qt implementation is first it determinea if the parent is under the mouse, if not, all its children will be ignored, even thought Qt allows to render child outside its parent's boundingRect.

    Is there a flag I can set so child item can be picked in this case?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem with pick a QGraphicsItem

    Please provide a minimal compilable example reproducing the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Problem with FBO in QGraphicsItem
    By Student3000 in forum Qt Programming
    Replies: 0
    Last Post: 22nd September 2010, 09:35
  2. QGraphicsItem problem
    By zgulser in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2010, 09:19
  3. QGraphicsItem scale problem
    By qlands in forum Qt Programming
    Replies: 5
    Last Post: 9th June 2010, 16:43
  4. Having problem with QGraphicsItem
    By Kingofhearts_sri in forum Qt Programming
    Replies: 4
    Last Post: 23rd January 2009, 19:10
  5. Replies: 4
    Last Post: 11th September 2006, 14:13

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.