Simulate a click

All about Windows versions
Post Reply
dmmontes
Posts: 5
Joined: Tue Dec 26, 2017 6:06 pm

Simulate a click

Post by dmmontes »

Hi,

I have been trying to simulate a click in main windows but it has been imposible. I would like to know if is there any method to do this? I have seen method onWheelEvent that simulate a displacement or zoom. I want the same, but for a click, is there something?

Thank you and sorry for my english!
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Simulate a click

Post by daniel »

You would have to call 'mousePressEvent' and then 'mouseReleaseEvent' with the right (fake) event I guess? (i.e. with the right or left mouse button pressed). However I'm not sure that's possible :D

Therefore one would need to create an intermediate function that generalizes the clicking process.

But the real question is: what are you trying to achieve? Isn't there a cleaner way to do it? :D
Daniel, CloudCompare admin
Post Reply