Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Find Item behind current Item

Find Item behind current Item

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 187 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.
  • L Offline
    L Offline
    Larvae
    wrote on last edited by
    #1

    Hi,

    I would like to know how I can find which QQuickItem is behind another QQuickItem (visually on the screen).

    QQuickItem offers QQuickItem::childItems() , and Item (QML) has children() (property). In QML it returns the visual children. Is it identical to C++ or does C++ refer to QObject-Like children? And is that list sorted?

    I have seen a function paintOrderChildItems() for this somewhere, but it appears to be in a private header, and I would like to avoid private headers if possible.

    My goal is to have an Item send events to the Item below it and/or pass events through (like the MouseArea's propragate property, but not limited to mouse events)

    Regards

    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