Comments (2)
我没有高清屏没做过相关测试,这三个按钮是QPushButton
,使用的是系统的图标
buttonClose = new QPushButton(par);
buttonClose->setObjectName(QStringLiteral("SACloseWindowButton"));
buttonClose->setFixedSize(40,30);
//buttonClose->setFlat(true);
par->connect(buttonClose,&QAbstractButton::clicked
,par,&SAWindowButtonGroup::closeWindow);
buttonClose->setStyleSheet(QString("QPushButton "
"{ "
" background-color: #E3E3E5; "
" border:none;"
"}"
"QPushButton:hover {background-color:#F0604D}"
"QPushButton:pressed {background-color:#F0604D}"
"QPushButton:focus{outline: none;}"));
QIcon icon = par->style()->standardIcon(QStyle::SP_TitleBarCloseButton);
buttonClose->setIcon(icon);
我不清楚它和其它程序比会大多数,不过你可以通过修改源码的:SAWindowButtonGroup.cpp
下对图标进行设置。后续会考虑提供SAWindowButtonGroup
的接口
from saribbon.
这样确实可以调节这三个按钮的大小,但是总感觉不是特别完美。谢谢帮助。
from saribbon.
Related Issues (20)
- Window titlebar not showing on classic menubar mode HOT 2
- SARibbonToolButton伪状态字体颜色 HOT 2
- 多屏幕下 副屏的按钮无法正常显示 HOT 1
- 修改 quickAccessBar 图标大小没有效果 HOT 1
- 将源码引入工程成一个子模块,通过静态链接方式链接报错 HOT 1
- 把Qt3DExtras::Qt3DWindow放进SARibbonMainWindow时起始位置往左偏移 HOT 7
- Implement ApplicationToolButton Dialog in MSOffice 2013 style HOT 3
- SARibbonBar布局議題 HOT 4
- 请问SARibbonMainWindow 右上角的最大化、最小化、关闭三个按钮如何去掉或隐藏呢? HOT 1
- 笔记本为1080p, 外接屏幕为4k屏,最大化窗口异常 HOT 2
- SARibbon in QT Designer HOT 1
- 是否支持Qt的*.qm翻译文件? HOT 3
- StyleSheet議題 HOT 3
- SARibbonCategory中添加SARibbonPannel,然后再SARibbonPannel中添加QAction,名称过长无法自适应QAction的宽度 HOT 3
- ui->setupUi(this);之后看不到saribbon HOT 1
- 图标大小不一致
- 编译报错 HOT 7
- Suggestion to fix padding tab
- 原生視窗切換功能失效 HOT 12
- 为 SARibbonPannel添加Qss HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saribbon.