Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved how to select inner red circle from these two circles

    General and Desktop
    2
    3
    1185
    Loading More Posts
    • 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 Lamkane
      Vijay Lamkane last edited by A Former User

      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 Reply Quote 0
      • dheerendra
        dheerendra Qt Champions 2022 last edited by

        @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 Lamkane 1 Reply Last reply Reply Quote 4
        • Vijay Lamkane
          Vijay Lamkane @dheerendra last edited by

          @dheerendra thnks for your reply.

          yes i use mouse click to select circle

          1 Reply Last reply Reply Quote 1
          • First post
            Last post