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. how to select inner red circle from these two circles
Forum Updated to NodeBB v4.3 + New Features

how to select inner red circle from these two circles

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • Vijay LamkaneV Offline
    Vijay LamkaneV Offline
    Vijay Lamkane
    wrote on last edited by A Former User
    #1

    as u see in the above link there are two circles one is black and one red circle .
    when i am going to select red circle the the black circle gets selects, how can i get/change focus on red circle, when i resize that black circle and place it inside red circle the both circles are selectable ie. now i can select red and black circle both.
    QGraphicsScene and QGraphicsEllipseItem for drawing circle.

    Edit: Moved the link to the image from the thread title to the body of your posting. -- @Wieland

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      @Vijay-Lamkane said:

      QGraphicsEllipseItem

      I'm assuming that you are using the mouse to select the circle.
      Use QGraphicsEllipseItem.contains(...) method find where the mouse is clicked.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      Vijay LamkaneV 1 Reply Last reply
      4
      • dheerendraD dheerendra

        @Vijay-Lamkane said:

        QGraphicsEllipseItem

        I'm assuming that you are using the mouse to select the circle.
        Use QGraphicsEllipseItem.contains(...) method find where the mouse is clicked.

        Vijay LamkaneV Offline
        Vijay LamkaneV Offline
        Vijay Lamkane
        wrote on last edited by
        #3

        @dheerendra thnks for your reply.

        yes i use mouse click to select circle

        1 Reply Last reply
        1

        • Login

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