Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Resizing MDI subwindow?
wecing last edited by
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:
goetz last edited by
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.