After much searching for an answer, and experimenting, I found this to work for me.
child->parentWidget()->resize(900, 700);
child->parentWidget()->updateGeometry();
child->show();
// child->showMaximized();
child->parentWidget()->resize(900, 700);
child->parentWidget()->updateGeometry();
child->show();
// child->showMaximized();
To copy to clipboard, switch view to plain text mode
You can use showMaximized() in place of show() and the (900, 700) will still be used if the window is later changed to normal.
Bookmarks