I am creating Qgraphics view in MDI child
but I have an error
here is my code
void MainWindow::newFile()
{ static int sequenceNumber = 1;
isUntitled = true;
curFile = tr("document%1.txt").arg(sequenceNumber++);
QW->setWindowTitle(curFile);
QW->show();
MdiChild *Mdi=new MdiChild();
Mdi->show();
view = new QGraphicsView(Mdi->scene,MainWindow);
view->setGeometry(QRect(100, 160, 221, 121));
view->setDragMode(view->NoDrag);
view ->show();
}
The error is Expected primary epression before '>' token
please help me
Bookmarks