Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Detect movement inside an Item

$
0
0
Hello, I have a ComboBox-like element, which has a drop down menu. The drop down menu is created as a child of the main window, with coordinates of my element. When the element moves and drop-down is currently open, the position of the drop-down menu is not updated. I’d like to close it in this case. So how do I detect movement of my QML element? It can be due to scrolling (when the element is on a Flickable) or adding/removing other children in a Row, Column, etc. If you have any other idea to make a drop-down menu (rather than creating it as a child of top-level Item), it’s also appreciated.

Viewing all articles
Browse latest Browse all 4972

Trending Articles