Hi All,
snap1.png
what I am suppose to do is to simulate the mouse click event,
for example:
if user click the button in the above picture, it may send out a mouse click event :
QMouseEvent(
(QEvent::MouseButtonPress),
QPoint(10,10),
Qt::LeftButton,
Qt::LeftButton,
Qt::NoModifier
)
just as if the user click QPoint(10,10) of the window.
so the QGraphicsTextItem "aaa" will be selected.
but one problem is that I cann't use the postevent method,
because I don't know the receiver , I just want to simulate the true behavior of a mouse,
when click the button,it can simulate click anywhere inside the window.
is it possible ?
Thanks advance for your help.
Best regards,
hb
Bookmarks