Hi,
I am using QT 4.2.2. I add a QGraphicsView in my main window using the following code. When i run my program, then the QGraphicsView display in my mainwindow at the particular location. I need to draw a line in this QGraphicsView. How can I do this? Please help me.

MainWindow::MainWindow {

QGraphicsView *view = new QGraphicsView(this);
view->setGeometry(QRect(410, 40, 141, 511));

}