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

Qt Code:
  1. myview = new QGraphicsView(scene);
  2. QRect myrect = this->geometry();
  3. QRect frameRect = this->frameGeometry();
To copy to clipboard, switch view to plain text mode 

ultimately i want to be able to move my child widget only within the frame of my main window

thanks