Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPainterPath colliding detects all the objects under a planar space below a curved path.
Forum Updated to NodeBB v4.3 + New Features

QPainterPath colliding detects all the objects under a planar space below a curved path.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 577 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    ddze
    wrote on last edited by
    #1

    I use the QPainterPath to draw quad curves on a QGraphicsSceneby adding the path. It does nicely, but one thing remains a problem.

    I want to obtain colliding objects but only the ones under the curve. When I check for the colliding objects it returns all the objects within an area enclosing the curve with the two start points.

    Question, is possible to detect only the items just below the curved line (using the QPainterPath + QGraphicsPainterItem )?

    Or it is the better to to derive a 'curvy' QGraphicsItem.

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      please provide more info. Its hard to guess what you are already doing and why the result isn't what you are expecting.

      What type of QGraphicsItem do you add to the scene? Is it a custom item?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved