Unsolved Make rectangle as popup element that all of back element does not receive inputs like scroll
-
Hello guys just want to ask how can i disable all input like scroll click and hover to the back element if i have rectanggal that i overlapped in the current element.
-
@ChrisPanda
you could add a MouseArea to your rectangle. That will, by default, capture all mouse events and prevent them from going to underlying elements -
@J-Hilk Already tried that sir but its only works for mouse click and hover but not on scroll.
-
@ChrisPanda try adding
onWheel:accepted = true
because according to the Documentations, wheel events are propagated by default 🤷♂️
https://doc.qt.io/qt-5/qml-qtquick-wheelevent.html#accepted-prop -
It works! thanks. how about the tab key for focus? how can i disable it?
-
@ChrisPanda I do not know what you mean
-
@J-Hilk like that also. i just want to not focus on the back item when i press tab. cause some of my back item focuses when i am pressing tab. i just want it to my current rectangle