PDA

View Full Version : Qgraphics View



amagdy.ibrahim
15th June 2008, 11:02
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

wysota
15th June 2008, 11:10
Please don't start multiple threads on the same subject.