Resizing MDI subwindow?
Here is my code:
@gameWindow = new GameWindow();
It worked, but size of the subwindow is incorrect. It's very small. But I can resize it manually.
UPDATE: For my problem, this works well, but I don't know why:
mdiArea->addSubWindow returns a QMdiSubwindow instance, so that's why you need to call resize on the parent (which is the sub window itself). You can keep the returned pointer and call resize on it directly.