当前位置:网站首页>qt 设置图标
qt 设置图标
2022-07-27 23:32:00 【AdleyTales】
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
// 添加Qt资源文件使用格式 : + 前缀 + 文件名
ui->actionnew->setIcon(QIcon(":Image/images/home.png"));
ui->actionopen->setIcon(QIcon(":Image/images/new.png"));
}
MainWindow::~MainWindow()
{
delete ui;
}
边栏推荐
- BAT大厂测试架构师如何解读测试平台的各种争议
- Thoroughly understand kubernetes scheduling framework and plug-ins
- Cesium add dynamic pop-up
- BSP video tutorial issue 21: easy one key implementation of serial port DMA variable length transceiver, support bare metal and RTOS, including MDK and IAR, which is more convenient than stm32cubemx (
- String
- 同心向前,Google Play 十周年啦!
- 面试题 01.06. 字符串压缩
- Token is used in nodejs
- Lua进阶
- Oracle Rac 集群文件目录迁移
猜你喜欢

String

How the test architects of bat factories interpret various disputes of the test platform

JUC concurrent programming learning

测试人员需要了解的软件流程

伦敦银开盘时间知多少

LeetCode 2341. 数组能形成多少数对

同心向前,Google Play 十周年啦!

Fluent call interface UI

Lua get started quickly

Let's move forward together, the 10th anniversary of Google play!
随机推荐
BYD semiconductor completed the a+ round financing of 800million yuan: 30 well-known investment institutions entered the market, with a valuation of 10.2 billion yuan!
华为“天才少年”稚晖君又出新作,从零开始造“客制化”智能键盘
[C language] file operation
Codeforces summer training weekly (7.21~7.27)
开发 Flutter 录音功能的插件
C language main function transfer parameters
HarmonyOS 3正式发布:鸿蒙手机流畅安全,鸿蒙终端常用常新
Knowledge of two-dimensional array
Count the number of given strings in a string
How to solve the pain points of 12000 small and medium-sized customers' component procurement? Say goodbye to overtime!
Basic learning of cesium
Software testing interview question: where do your performance testing requirements come from?
Huami technology "Huangshan No.2" release: AI performance is improved by 7 times, and power consumption is reduced by 50%!
EWM receiving ECC delivery note verification logic problem
Cesium add dynamic pop-up
How to calculate the profit and loss of spot Silver
Lua get started quickly
登录功能实现
Flutter 通话界面UI
Kibana6.2.4 version update x-pack certification