{
QRectF target
(30.0,
40.0,
80.0,
60.0);
QRectF source
(30.0,
40.0,
70.0,
40.0);
QImage image
("C:/QTWork/back-icon.png");
painter.drawImage(target, image, source);
ui
->calendarWidget
->paintCell
(painter,target,
QDate::currentDate());
painter.end();
}
void PainterApp::paintEvent(QPaintEvent *)
{
QPainter painter(this);
QRectF target(30.0, 40.0, 80.0, 60.0);
QRectF source(30.0, 40.0, 70.0, 40.0);
QImage image("C:/QTWork/back-icon.png");
painter.drawImage(target, image, source);
ui->calendarWidget->paintCell(painter,target,QDate::currentDate());
painter.end();
}
To copy to clipboard, switch view to plain text mode
regards
Bookmarks