void Widget::on_pushButton_6_clicked()
{
QPoint point
(cur.
pos().
x(), cur.
pos().
y());
}
void Widget::on_pushButton_6_clicked()
{
QPoint point(cur.pos().x(), cur.pos().y());
QApplication::postEvent(QApplication::desktop()->window(), new QMouseEvent(QMouseEvent::MouseButtonPress,point,Qt::RightButton, Qt::RightButton,Qt::NoModifier));
QApplication::postEvent(QApplication::desktop()->window(), new QMouseEvent(QMouseEvent::MouseButtonRelease,point,Qt::RightButton, Qt::RightButton,Qt::NoModifier));
}
To copy to clipboard, switch view to plain text mode
Bookmarks