Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Qt 创建者中将主窗口设为 MDI 父级
考虑使用QMdiArea小部件作为父窗口的中心小部件。像这样:
QMainWindow *mainWindow = new QMainWindow; mainWindow->setCentralWidget(mdiArea);
更好的例子在这里:MDI 示例
希望这会有所帮助,问候