Comments (3)
macOS和Ubuntu都对menubar有特殊的处理,目前SARibbon是通过替换原来menubar的方式实现的,对macOS等这种有特殊的原生menubar暂不支持。这两个系统需要单独开发
from saribbon.
在windows 10, qt 5.15.2下,UseDesginerMainWindowExample示例,也会出现该现象
将构造函数中的SARibbonMainWindow(parent),修改为SARibbonMainWindow(parent, false),
并在ui->setupUi(this);之后增加setRibbonTheme(ribbonTheme());
可以解决该问题
MainWindow::MainWindow(QWidget *parent)
: SARibbonMainWindow(parent**, false**)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
**setRibbonTheme(ribbonTheme());**
}
具体原因是由于SAWindowButtonGroup在SARibbonBar之前创建导致的,但是不知道为什么会导致这种现象的出现...
from saribbon.
加一句ribbon->setNativeMenuBar(false)就可以了,亲测可行。不过tab部分的字体太靠下了,不知道怎么居中。
SARibbonBar* ribbon = ribbonBar();
ribbon->setNativeMenuBar(false);
//通过setContentsMargins设置ribbon四周的间距
ribbon->setContentsMargins(5, 0, 5, 0);
//设置applicationButton
PRINT_COST("setCentralWidget & setWindowTitle");
ribbon->applicationButton()->setText(("File"));
ribbon->setRibbonStyle(SARibbonBar::WpsLiteStyle);
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
- 图标大小不一致
- SystemButton 关闭按钮位置异常 HOT 12
- SystemButton最大化按钮Windows11特性显示位置偏下方 HOT 1
- 自定义的样式 applicationButton 高度受限 HOT 1
- 解析Ribbon的按钮,可用于autoTest解析automation id
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.