qt怎么给action添加图标
答案:2 悬赏:40
解决时间 2021-02-19 14:58
- 提问者网友:多余借口
- 2021-02-19 01:22
qt怎么给action添加图标
最佳答案
- 二级知识专家网友:你好陌生人
- 2021-02-19 02:24
QActionGroup* display_mode_action_group_ = new QActionGroup(this);
display_mode_action_group_->addAction(ui->action_single_mode);
display_mode_action_group_->addAction(ui->action_two_mode);
display_mode_action_group_->addAction(ui->action_four_mode);
display_mode_action_group_->addAction(ui->action_single_mode);
display_mode_action_group_->addAction(ui->action_two_mode);
display_mode_action_group_->addAction(ui->action_four_mode);
全部回答
- 1楼网友:高冷不撩人
- 2021-02-19 02:31
windows下的可执行文件的属性中有版本这个信息,她含有版本信息,描述,版权等等。对于qt的程序,要含有这样的信息,该怎么办呢?那就如下操作吧:新建***.rc文件,在rc文件填入下的信息
#if defined(under_ce)
#include
#else
#include
#endif
vs_version_info versioninfo
fileversion 1,0,0,0
productversion 1,0,0,0
fileflagsmask 0x3fl
#ifdef _debug
fileflags vs_ff_debug
#else
fileflags 0x0l
#endif
fileos vos__windows32
filetype vft_dll
filesubtype 0x0l
begin
block "stringfileinfo"
begin
block "040904b0"
begin
value "companyname", "artphoto365.com\0"
value "filedescription", "artphoto365c线下软件\0"
value "fileversion", "1.0.0.0\0"
value "legalcopyright", "(c) 2010-2011 artphoto365.com\0"
value "originalfilename", "artphoto365c.exe\0"
value "productname", "artphoto365c线下软件\0"
end
end
end
然后记住将pro文件的other_files += resource.rc改成rc_file = resource.rc,要不编译生成的程序不含有版本信息。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |