bossy
6th October 2013, 14:43
I read a few post about this and somehow I'm still not clear on how i get the frame size of my main window.
in this exemple, geometry and frameGeometry only have 1 of difference. I get the same result if i query after the window is painted
QGraphicsScene *scene = new QGraphicsScene();
myview = new QGraphicsView(scene);
QRect myrect = this->geometry();
QRect frameRect = this->frameGeometry();
ultimately i want to be able to move my child widget only within the frame of my main window
thanks
in this exemple, geometry and frameGeometry only have 1 of difference. I get the same result if i query after the window is painted
QGraphicsScene *scene = new QGraphicsScene();
myview = new QGraphicsView(scene);
QRect myrect = this->geometry();
QRect frameRect = this->frameGeometry();
ultimately i want to be able to move my child widget only within the frame of my main window
thanks