void Calendar::testCustomClick()
{
{
QMouseEvent qm2
(QEvent::MouseButtonPress,
QPoint(qCal
->width
()/2,qCal
->height
()/2), Qt
::LeftButton , Qt
::LeftButton, Qt
::NoModifier);
}
{
QMouseEvent qm2
(QEvent::MouseButtonRelease,
QPoint(qCal
->width
()/2,qCal
->height
()/2), Qt
::LeftButton , Qt
::LeftButton, Qt
::NoModifier);
}
}
void Calendar::testCustomClick()
{
{
QMouseEvent qm2(QEvent::MouseButtonPress, QPoint(qCal->width()/2,qCal->height()/2), Qt::LeftButton , Qt::LeftButton, Qt::NoModifier);
QApplication::sendEvent(qCal, &qm2);
}
{
QMouseEvent qm2(QEvent::MouseButtonRelease, QPoint(qCal->width()/2,qCal->height()/2), Qt::LeftButton , Qt::LeftButton, Qt::NoModifier);
QApplication::sendEvent(qCal, &qm2);
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks