社区
Linux/Unix社区
帖子详情
qpushbutton显示qframe
xiongmin060102
2011-11-05 05:06:23
在qt中我想通过鼠标点击qpushbutton使qframe出现或者隐藏,不知道要怎么实现?
connect(ui->pushButton, SIGNAL(clicked()),frame,SLOT(show()));
frame是在.cpp文件中new的,这样做实现不了,程序直接退出去了,请问要怎么实现啊
另外写了几个ui,想在一个界面中同时将其他几个界面的缩小版显示出来,要怎么做啊
...全文
62
1
打赏
收藏
qpushbutton显示qframe
在qt中我想通过鼠标点击qpushbutton使qframe出现或者隐藏,不知道要怎么实现? connect(ui->pushButton, SIGNAL(clicked()),frame,SLOT(show())); frame是在.cpp文件中new的,这样做实现不了,程序直接退出去了,请问要怎么实现啊 另外写了几个ui,想在一个界面中同时将其他几个界面的缩小版显示出来,要怎么做啊
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
SilenceSu
2012-06-25
打赏
举报
回复
自己写一个槽 在里面实现
qt窗口部件——其他窗口部件代码
1. Q
Frame
1.1 QLabel 1.2 QLCDNumber 1.3 QStackedWidget 1.4 QToolBox 2. QAbstract
Button
2.1 Q
Push
Button
2.2 QCheckBox、QRadio
Button
、QGroupBox 3. QLineEdit 3.1
显示
模式 3.2 输入掩码 3.3 输入验证 3.4 ...
Qt Creator 的安装和hello world 程序+其他程序的编写--不是一般的好
先可能
显示
“没有找到mingwm10.dll,因此这个应用程序未能启动。重新安装 应用程序可能会修复此问题。”表示缺少mingwm10.dll 文件。 解决这个问题我们可以将相应的.dll 文件放到系统 中。在Qt Creator 的安装目录的...
PyQt4 精彩实例分析26个例子
font
Push
Button
= Q
Push
Button
( self.tr("字体对话框") 19 self. fileLine Edit=QLine Edito self. color
Frame
=Q
Frame
( 21 self. color
Frame
set
Frame
Shape(Q
Frame
. Box) 22 self. color
Frame
....
q
push
button
设置居中,将Q
Push
Button
添加到QTableWidget中的QTableWidgetItem中,如何使其变为Qt :: AlignHCenter...
Q
Push
Button
* btn_edit = new Q
Push
Button
(); btn_edit = new Q
Push
Button
(); btn_edit->setText("Edit"); ui.table->setCellWidget(i,3,(QWidget*)btn_edit); ++it; } I add a Q
Push
Button
into the cell with the...
QT开发 - 布局
1. QHBoxLayout ... Q
Push
Button
*
button
1 = new Q
Push
Button
("One"); Q
Push
Button
*
button
2 = new Q
Push
Button
("Two"); Q
Push
Button
*
button
3 = new Q
Push
Button
("Three"); Q
Push
Button
*
button
4 = ne
Linux/Unix社区
23,107
社区成员
74,506
社区内容
发帖
与我相关
我的任务
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章