神末shenmo
deepin
2021-02-20 06:11 Spark-App
Q&A Team
mystiq -style Fushion
QApplication: invalid style override passed, ignoring it.
Reply Like 0 View the author
mystiq -style Fushion
QApplication: invalid style override passed, ignoring it.
mystiq -style Fushion
QApplication: invalid style override passed, ignoring it.
主题名字叫fusion,小写
直接换肤柑橘不算是一个很优雅的方式;个人更推荐 https://github.com/xmuli/lfxNet/blob/master/dde-dock-plugin/WinDdeDockSetting.cpp#L51
// 控件的基本设置,其读写留其它函数完成
// auto list = this->findChildren(); // 切换为上下按钮模式
// for (auto v : list)
// v->setProperty("_d_dtk_spinBox", true);
Deepin20主题魔改引起的问题:
1.QSpinBox宽度不足
2.QTableWidget->resizeColumnsToContents(); 宽度适应内容后,宽度仍然不足,以省略号显示。
@maicss 提供的解决方案:使用Qt内置主题(覆盖DDE主题)
1.首先查看Qt有哪几个内置主题:
2.然后可以在代码里设置,两种方法都可以:
还有一个更简单的方法:带参数启动
失去的功能:
QSlider点击定位