在线咨询 切换到宽版
eetop公众号 创芯大讲堂 创芯人才网

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

搜帖子
查看: 1926|回复: 0

Qt problem, open a new window on mainwindow

[复制链接]
发表于 2011-6-29 16:22:08 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
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".
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-9-12 13:58 , Processed in 0.016033 second(s), 6 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表