Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QToolButton::focus background



  • I want the focus(blue rectangle) fill black.

    setStyleSheet("QToolButton { color:white; background:transparent; }" 
                  "QToolButton::focus { background:rgba(0,0,0,100); }"
                  "QToolButton::hover { color:black; background:rgba(255,255,255,100); }");
    

    替代文字


Log in to reply