Resizing MDI subwindow?
General and Desktop
2
Posts
2
Posters
3.6k
Views
1
Watching
-
Hi guys.
Here is my code:
@gameWindow = new GameWindow();
mainWindow->mdiArea->addSubWindow(gameWindow);
gameWindow->show();
gameWindow->openVideoFile(projectPath->absoluteFilePath(map->videoName);.toUtf8().data());
gameWindow->resize(gameWindow->videoWidth, gameWindow->videoHeight);@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:
@gameWindow->parentWidget()->resize(gameWindow->videoWidth, gameWindow->videoHeight);@