Closed Thread
Results 1 to 2 of 2

Thread: Qgraphics View

  1. #1

    Default Qgraphics View

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    29,628
    Thanks
    3
    Thanked 4,344 Times in 4,175 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: Qgraphics View

    Please don't start multiple threads on the same subject.

Closed Thread

Similar Threads

  1. Not Scaling QBrush style fro qgraphics view item
    By dan in forum Qt Programming
    Replies: 7
    Last Post: 1st October 2012, 20:04
  2. Creating Qgraphics View code
    By amagdy.ibrahim in forum Qt Programming
    Replies: 9
    Last Post: 15th June 2008, 15:43
  3. Replies: 2
    Last Post: 22nd July 2007, 19:21
  4. QGraphics view problem
    By kiranraj in forum Qt Programming
    Replies: 5
    Last Post: 6th March 2007, 21:28
  5. Model, View and Proxy
    By No-Nonsense in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2006, 08:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts