Qt组合框样式表在max osX上
Qt combobox stylesheets on max osX
我尝试了许多不同的选项来设计QCombobox的样式,但我在mac osx上仍然有一些问题。它看起来像这样:在osx上http://img90.imageshack.us/img90/9550/stylesheets.png
我想删除视图列表顶部/底部的白色,但是我似乎找不到这样做的方法。
下面是我现在的代码:QComboBox{
color:rgba(200,200,200,255);
background-color:rgba(71,71,71,255);
selection-color:rgba(243,149,0,255);
selection-background-color:rgba(71,71,71,255);
}
QComboBox QAbstractItemView{
border-radius:0px;
border:0px;
selection-background-color:rgba(71,71,71,255);
background:rgba(71,71,71,255);
color:rgb(200,200,200);
}
感谢您的帮助
谢谢
使用自己的应用程序样式(基于QProxyStyle) &重写QProxyStyle::styleHint为:
<>之前int CMyProxyStyle::styleHint(styleHint提示,const QStyleOption*选项= 0,const QWidget* widget = 0, QStyleHintReturn* returnData =0) const{if(SH_ComboBox_Popup ==提示)//禁用组合框弹出的顶部和底部区域返回QProxyStyle::styleHint(提示,选项,部件,returnData);}之前为qApp实例安装自己的样式:
<>之前qApp->setStyle(new CMyProxyStyle);相关文章:
- <streamsize>C++ 中 numeric_limits::max() 的值
- 黑客级别的Mini-Max Sum
- 'max'匹配'std::function<const int &(const int &, const int &)>'无过载
- OSX MetalKit CVMetalTextureCacheCreateTextureFromImage失败,状态:
- 关于 std::min, std::max 中的比较运算符的混淆
- OSX蓝牙打开RFCOMMChannelAsync声称已连接,但未建立连接,并且从未调用过委托
- 在OSX上使用CMake将Adobe的XMP工具包构建为共享库的最简单方法是什么?
- 找到一种有效的方法,在 2 个巨大的缓冲区上执行 MAX,每字节字节
- C ++是否有C ++ 17 OSX 10.13.6的标志
- std::max() 函数与定点实现的比较中的问题
- 使用 CImg 库的 std::min 和 std::max 的编译问题
- 各种版本的 Mac OSX 向后兼容性如何?(Xcode C++
- 在 3ds Max 中更新进度条后,环境和效果 UI 不刷新
- 从自定义类获取对象向量中的 max 元素
- OSX clang++:用于 cpp 文件中显式实例化模板的体系结构x86_64的未定义符号
- 如何在C++中递归地找到max元素的索引?
- SFINAE 与 numeric_limits<T>::max() 在 MSVC2017 上
- 在 OSX 上打开 SDL 窗口时不要打开终端窗口
- 如何在 OSX 10.15 中使用 Clang -Wno-nullability-completeness 选项编译整个
- Qt组合框样式表在max osX上