Results 1 to 5 of 5

Thread: GraphicsView ignoring clicks on some objects

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: GraphicsView ignoring clicks on some objects

    Hit checking is done based on the shape() and not boundingRect(), so provided that the former is implemented correctly, the line shouldn't interfere.

  2. #2

    Default Re: GraphicsView ignoring clicks on some objects

    Oh great! thank you!

  3. #3

    Default Re: GraphicsView ignoring clicks on some objects

    Hmm, ok I am having a problem with the shape. Since my "shape" is a line, its really skinny and hard to select.

    Is there a way to easy, "offset" the line to create a thicker selection region?

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

    Default Re: GraphicsView ignoring clicks on some objects

    Sure, use a polygon as the shape instead of a line. Then you can control the thickness as you like.

Similar Threads

  1. Ignoring zoomin/zoom out in the GraphicsView
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 20th July 2007, 06:42
  2. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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.