What do want by sending a mouse click event like this ?
What do want by sending a mouse click event like this ?
events are passed from childrens to parents, not from parents to childrens, so if you want to send click to some button, you have to send it directly to that button, not to applicattion which has this button. Application would be the last object trying to handle this event when any children and children of children and so on (but starting from the deepest nested children) can't handle it for their own.
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
I dont want to send "click" to a spesific widget; I want to send it to the "point" under mouse cursor. When someone clicks on the touch screen, i should simulate that click on the gui. So actually the application should handle the click, i think ..
no, you have to find what widget is at that point and send event to that widget. If it is for example a button in a groupbox you can't send it to that groupbox and want the button to be pressed because group box will send thes event to the window it is in. Events are propagating from childrens to parent, so the main windows is a parent (grand parent and so on...) for all other widgets in it, so sending event to the main windows won't make any sense because it will try to handle it as a main window (no passing to any children) and discards it on a failure.
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
yagabey (8th October 2009)
Is there a good method to find what widget under cursor?
ok ,i thinkmay work.Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks