Important: Please read the Qt Code of Conduct -

Qt Qml Selecting Grid items using Selection Rectangle

  • Sample Image

    In the above image the light colored rectangle is the selection rectangle.

    What i am trying to create is similar to a desktop environment. i need to select n number of items in the GridView like this way. i know it is not possible only using qml. please help me to figure this out. i'm not much familiar with QT C++.

    I Know that we can only select a single item in GridView at a time


    Is There any way that i can detect if the selection rectangle overlaps my GridView item and to highlight them?

    In this post
    need help on how to detect overlapping circles

    aya_lawliet mentioned about QGraphicsItem::collidingItems

    Is there a way i can detect the collided grid view item through QGraphicsItem::collidingItems ?

Log in to reply