Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPushButton made with images on it gets focus "shading" in Ubuntu
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ronM71
    wrote on last edited by
    #1

    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?.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved