上一页 1 ··· 9 10 11 12 13
摘要: 图标: 将一个图标文件(ico) 复制到项目源程序目录下 在项目配置项里添加一行代码 RC_ICONS = AppIcon.ico //Appicon时图标文件名称 信号与槽的第五个参数::连接方式 Qt::AutoConnection:: QT::DirectConnection : 信号被发射时 阅读全文
posted @ 2021-07-16 00:29 Azuki_op 阅读(73) 评论(0) 推荐(0)
摘要: // findChild找到名为 pushButton_sm_ i 的button设置Text for(int i=0 ;i<10; i++){ QPushButton* btn = ui->widget->findChild<QPushButton*>(QString("pushButton_sm 阅读全文
posted @ 2021-07-16 00:21 Azuki_op 阅读(2574) 评论(0) 推荐(0)
摘要: ui->toolButton->setMenu(menu);//设置按钮的弹出菜单 ui->toolButton->setPopupMode(QToolButton::DelayedPopup);//设置弹出菜单的方式,默认情况下,设置为DelayedPopup(延迟弹出) // QToolButt 阅读全文
posted @ 2021-07-15 10:39 Azuki_op 阅读(1024) 评论(0) 推荐(0)
摘要: Qt的PushButton的常用的三种响应有pressed,released和clicked。 优先级:pressed>released>clicked 按下按钮pressed函数的内容,释放按钮先执行released函数的内容,再执行clicked函数的内容。 当鼠标光标在按钮上时,鼠标左键被按下 阅读全文
posted @ 2021-07-15 10:02 Azuki_op 阅读(3557) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13