当前位置:网站首页>When QT uses qtooltip mouse to display text, the picture of the button will also be displayed and the prompt text style will be modified
When QT uses qtooltip mouse to display text, the picture of the button will also be displayed and the prompt text style will be modified
2022-07-07 03:41:00 【Program yuan ZCC】
Use QToolTip Problems encountered in :
1、 The mouse will put QPushButton Of Background map Show it
2、 Set up QToolTip Style failed
if(preview) {// Preview on
ui->preview->setStyleSheet("border-image:url(:/style/preview_icon.png);");
ui->preview->setToolTip(" Close the preview ");
} else {
ui->preview->setStyleSheet("border-image:url(:/style/n_preview_icon.png);");
ui->preview->setToolTip(" Open Preview ");
}
After modifying the code :
if(preview) {// Preview on
ui->preview->setStyleSheet("QPushButton{border-image:url(:/style/preview_icon.png);}"
"QToolTip{background-color: #ffffff; color:#484848;}");
ui->preview->setToolTip(" Close the preview ");
} else {
ui->preview->setStyleSheet("QPushButton{border-image:url(:/style/n_preview_icon.png);}"
"QToolTip{background-color: #ffffff; color:#484848;}");
ui->preview->setToolTip(" Open Preview ");
}
边栏推荐
- 华为小米互“抄作业”
- U.S. Air Force Research Laboratory, "exploring the vulnerability and robustness of deep learning systems", the latest 85 page technical report in 2022
- 2022年上半年HIT行业TOP50
- How to replace the backbone of the model
- 【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001
- Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
- 复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
- 装饰设计企业网站管理系统源码(含手机版源码)
- R data analysis: how to predict Cox model and reproduce high score articles
- 1200.Minimum Absolute Difference
猜你喜欢
数学归纳与递归
GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
19.(arcgis api for js篇)arcgis api for js线采集(SketchViewModel)
概率论公式
The latest 2022 review of "small sample deep learning image recognition"
24.(arcgis api for js篇)arcgis api for js点修改点编辑(SketchViewModel)
[security attack and Defense] how much do you know about serialization and deserialization?
【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001
Hisilicon 3559 universal platform construction: RTSP real-time playback support
随机推荐
24. (ArcGIS API for JS) ArcGIS API for JS point modification point editing (sketchviewmodel)
Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications
The latest 2022 review of "small sample deep learning image recognition"
22.(arcgis api for js篇)arcgis api for js圆采集(SketchViewModel)
Confirm the future development route! Digital economy, digital transformation, data This meeting is very important
Principle of attention mechanism
Jerry's broadcast has built-in flash prompt tone to control playback pause [chapter]
【安全攻防】序列化与反序列,你了解多少?
QT 使用QToolTip 鼠标放上去显示文字时会把按钮的图片也显示了、修改提示文字样式
Can the applet run in its own app and realize live broadcast and connection?
A 股指数成分数据 API 数据接口
SSL证书部署
Stored procedures and functions (MySQL)
【安全攻防】序列化與反序列,你了解多少?
存储过程与函数(MySQL)
About Confidence Intervals
枚举通用接口&枚举使用规范
1200.Minimum Absolute Difference
Probability formula
[dream database] add the task of automatically collecting statistical information