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.
有没有其他方法可以从另一个窗口创建一个新窗口?打开->新建项目->GUI类型->mainWindow.cpp。它将使winodw,我希望它的按钮。我想在 On_click() 之后打开一个新窗口。我将如何实现它任何人都可以解释我我们面临很多问题
您应该将QPushButton's clicked()信号连接到您的插槽,在插槽的实现中,您可以创建新的小部件并显示它。
QPushButton's clicked()