PDA

View Full Version : About QGraphicsView



paolom
27th September 2010, 19:41
Hi,

Is it possible to have in a centralwidget of a QMainWindow more than one graphics view ( and so more than one qgraphics scene) ??

Thanks

tbscope
27th September 2010, 19:46
Yes.

Use a layout.

paolom
27th September 2010, 19:48
Sorry for my reply, but how can I use with QGraphicsLayout more than one graphics view?

tbscope
27th September 2010, 19:52
Ohh, I meant a "widget" layout not a "graphics" layout.

You have a central widget in your main window.
Set a layout, like a grid layout, and add as many graphics views as you want.

paolom
27th September 2010, 23:43
and many graphics scene i want?!

tbscope
28th September 2010, 05:32
Yes, as many as you want