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. To remove tab index border
Forum Updated to NodeBB v4.3 + New Features

To remove tab index border

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 424 Views
  • 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.
  • I Offline
    I Offline
    IknowQT
    wrote on last edited by
    #1

    e30ac6c0-1d34-4491-b02e-39dc529771f2-image.png

    As shown in the picture, if you move the button using the tab key, a button border is created. Is there any way to get rid of this?

    1 Reply Last reply
    0
    • C ChrisW67

      The box indicates the currently selected button (default button). This is generally the one that would be triggered by the user pressing Enter.

      You can possibly style this away using the Qt Style Sheet :default selector.

      I have absolutely no idea why you would want to do this. Perhaps you can explain.

      I Offline
      I Offline
      IknowQT
      wrote on last edited by
      #3

      @ChrisW67

      I solved it by removing the focus.

      setFocusPolicy(Qt::NoFocus);
      
      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #2

        The box indicates the currently selected button (default button). This is generally the one that would be triggered by the user pressing Enter.

        You can possibly style this away using the Qt Style Sheet :default selector.

        I have absolutely no idea why you would want to do this. Perhaps you can explain.

        I 1 Reply Last reply
        2
        • C ChrisW67

          The box indicates the currently selected button (default button). This is generally the one that would be triggered by the user pressing Enter.

          You can possibly style this away using the Qt Style Sheet :default selector.

          I have absolutely no idea why you would want to do this. Perhaps you can explain.

          I Offline
          I Offline
          IknowQT
          wrote on last edited by
          #3

          @ChrisW67

          I solved it by removing the focus.

          setFocusPolicy(Qt::NoFocus);
          
          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