[Qt-interest] Basic QGraphicsview question

Phil phillor at telstra.com
Thu Dec 11 03:27:08 CET 2008


Thank you for reading this.

I've created a main window with Designer that includes a graphics view. 
Designer allocates a pointer to that graphics view called graphicsView.
 
Try as I may, I cannot see how to use that pointer in the following example 
code in place of "view".

  QGraphicsScene scene;
  scene.addText("Hello, world!");

  QGraphicsView view(&scene);
  view.show();

-- 
Regards,
Phil.





More information about the Qt-interest-old mailing list