PDA

View Full Version : using QGraphicsScene with QMdiArea



bossy
7th December 2013, 14:28
Hi,

I'am trying to get a general sense of how i could use the functionality of QMdiArea with QGraphicsScene. The idea is to be able to animate my QDialog but also manage them inside QMdiArea. However the Qwidget can only be added to the QGraphicsScene(scene->addWidget) or QMdiArea(myarea->addSubWindow) but not both. Inheritance didnt work, I could have a list of my Qwidget that i move from one to the other but doesnt sound right.

thanks

anda_skoa
7th December 2013, 14:36
I don't think this is directly possible.

Depending on your needs you could just use a QGraphicsScene and implement MDI like behavior yourself.

In general: are you sure you want to use an QMdiArea? It is one of the UI concepts everyone has moved away from over the last decade.

Cheers,
_