QMouseEvent *miceEv = new QMouseEvent(QEvent::MouseMove,QPoint(10,20), Qt::NoButton, Qt::NoButton, Qt::NoModifier);postEvent(myWidget, miceEv);
QPoint pos = QCursor::pos();QMouseEvent *miceEv = new QMouseEvent(QEvent::MouseMove, myWidget->mapFromGlobal(pos), Qt::NoButton, Qt::NoButton, Qt::NoModifier); postEvent(myWidget, miceEv);