{
painter.
setRenderHint(QPainter::Antialiasing,
true);
painter.
setPen(QPen(Qt
::black,
1,Qt
::SolidLine));
painter.drawLine(27,450,630,450);
painter.drawLine(30,50,30,453);
painter.drawLine(180,450,180,453);
painter.drawLine(330,450,330,453);
painter.drawLine(480,450,480,453);
painter.
drawText(QPoint(570,
470),tr
("Time (Sec)"));
painter.
drawText(QPoint(170,
470),tr
("75"));
painter.
drawText(QPoint(470,
470),tr
("225"));
painter.
drawText(QPoint(320,
470),tr
("150"));
painter.
drawText(QPoint(10,
40),tr
("Force (lbs)"));
}
void myDialog::paintEvent(QPaintEvent *event)
{
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing,true);
painter.setPen(QPen(Qt::black,1,Qt::SolidLine));
painter.drawLine(27,450,630,450);
painter.drawLine(30,50,30,453);
painter.drawLine(180,450,180,453);
painter.drawLine(330,450,330,453);
painter.drawLine(480,450,480,453);
painter.drawText(QPoint(570,470),tr("Time (Sec)"));
painter.drawText(QPoint(170,470),tr("75"));
painter.drawText(QPoint(470,470),tr("225"));
painter.drawText(QPoint(320,470),tr("150"));
painter.drawText(QPoint(10,40),tr("Force (lbs)"));
}
To copy to clipboard, switch view to plain text mode
Bookmarks