Hi
I am trying to display graphics in my a QGraphicsView object created in the main form using Qt designer. I am using the following function paintEvent in the mainwindow.cpp
void QGraphicsView:aintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.setPen(Qt::blue);
painter.setFont(QFont("Arial", 30));
painter.drawText(rect(), Qt::AlignCenter, "Qt");
}
Why do I still not get any drawings in my QGraphicsView object?
Thank you
Bookmarks