Problems with Open-Source Downloads read and

QPushButton made with images on it gets focus "shading" in Ubuntu

  • I have a widgets with QPushButtons on it. I style these QPushButtons to show an image for the standard, hover and pressed states. It works fine for Windows and OSX but does show a "selection" shade when the pushbutton receives focus on Ubuntu. It's kind of reddish shade layered on top of the button image. hitting TAB on the keyboard will move the focus rect and remove the red coloring.

    How can I make sure this doesn't happen? how do I prevent focus on the QPushButton in Ubuntu?.

  • I would think that is an artifact of the style you are using. Set a different style (QStyle, not style sheet) for the push buttons.

Log in to reply