QMdiSubWindow does not go to position used in setGeometry()
I am trying to set a subwindow (which I have a widget placed in) in my mdiarea to a fixed position using setGeometry(). The code is as follows:
@ programSubWindow = new QMdiSubWindow;
programWidget = new programDisplayWidget;
/Adjust size of subwindow to fit to its portion of the mdi area/
currentWindowSize = ui->mdiMdiArea->size();
width = round_num(currentWindowSize.width() * .33);
height = round_num(currentWindowSize.height() * 0.67);
programSubWindow->setGeometry(200, 200, width, height);
/Add subwindow to mdi area and show it/
It does not seem to be taking my setGeometry() command and always places my window in the upper left hand corner of my mdiarea. Does anyone know what the problem might be?
I'm surprised nobody has run into the same problem. I still can't figure it out. Any help?