Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Make rectangle as popup element that all of back element does not receive inputs like scroll
ChrisPanda last edited by ChrisPanda
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.
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 🤷♂️
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