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. Qt5 focus ring offset not working?

Qt5 focus ring offset not working?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 237 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.
  • D Offline
    D Offline
    DDR0
    wrote on last edited by DDR0
    #1

    Hello.
    I'm trying to style the focus ring of my application - I'd like it to appear around my buttons, as opposed to inside them. To that extent, I am trying to style the ring like this:

    app.setStyleSheet("""
    	/* Remove the little dotted focus ring. It's too hard to see. */
    	*:focus {
    		outline: 2px double blue;
    		outline-offset: 5px; /*This does not work.*/
    	}
    """)
    

    The outline-offset propertyhas no effect, positive or negative. What am I doing wrong? No errors or warnings are given by the program, and the outline property works fine.

    Thanks!

    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