Qpushbutton带有图像时不会突出显示(MAC)
QPushButton with Image not getting highlighted when focused (MAC)
我有一个带有图像的qpushbutton,我将重点策略设置为强烈的焦点,但是在集中注意力时,它并没有突出显示(没有点框架或默认蓝色边框)
)您应该看一下QPushButton
的QPalette
(在 QT设计器中),尤其是HighLight
颜色,该颜色应该处理此效果。此外,请确保您没有在该QPushButton
的父母的样式中定义focusPolicy
,因为这可能会导致问题,因为QPushButton
会继承该属性。
相关文章:
- 比较并显示使用最小值(a,b)和最大值(a、b)升序排列的4个数字
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 字符串-C++后显示的随机字符
- 继承期间显示未知行为的子类
- 仅使用绝对值对数组进行排序,并在C++中显示实际值
- 程序崩溃并显示"std::out_of_range"错误
- OpenGL符号突出显示visual studio Mac代码中的错误
- Qpushbutton带有图像时不会突出显示(MAC)
- 使用 c++ 如何在查找器中显示覆盖图标 mac osx.
- mac/eclipse上的c++在崩溃时不会显示错误
- 如何使用c++在Mac OSX中显示输入框
- 在 G++ Ubuntu 中工作,但在 Visual Studio 中显示分段错误,在 Mac 中的代码块和 G++ 中
- Qt C++ 菜单栏未显示在 Windows 上,而是在 Mac 上显示
- Mac OSX 上的 Eclipse CDT 未在首选项集中显示调试菜单
- Mac上的选定对象显示背景高亮显示,而不是边框高亮显示
- 在顶部mac窗口上显示应用程序菜单
- 在Mac OSX下的SDL中不显示图像和文本
- 菜单栏未显示简单的QMainWindow代码,Qt Creator Mac OS
- Mac上的Qt显示符号未在架构x86_64中找到
- C++ Mac 终端中不显示 Unicode