|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
I am a newbie to Qt 4.7.Does anyone know how to open a new window on Qt::mainwindow (if the window is not shown)?
Here is my partial program, but it is wrong.
.....
connect(openWindowBar, SIGNAK(triggered()), this, SLOT(openNewWindow()));
....
void mainwindow: penNewWindow
{
Window *window=new Window();
window->show();
window->activateWindow();
}
Where, class "Window" is defined on other file "window.cpp". |
|