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. My app's UI always has a blue frame on mac os, how to avoid it ?

My app's UI always has a blue frame on mac os, how to avoid it ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 912 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.
  • G Offline
    G Offline
    gavinliu
    wrote on last edited by gavinliu
    #1

    My app's UI always has a blue frame on mac os when it get focus,like this:
    blue frame
    When the username get focus, it has a blue frame.
    I know that is the os's setting in General-Appearance-Blue
    So what should i to do to avoid this ?
    Thanks very much.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What do you mean by avoid ? No focus rectangle ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      G 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        What do you mean by avoid ? No focus rectangle ?

        G Offline
        G Offline
        gavinliu
        wrote on last edited by
        #3

        @SGaist
        Thanks, I use setFocusPolicy(), it works, thanks.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          What do you mean by avoid ? No focus rectangle ?

          G Offline
          G Offline
          gavinliu
          wrote on last edited by
          #4

          @SGaist
          When I use setFocusPolicy(Qt::NoFocus), then my edit cann't get the focus.

          jsulmJ 1 Reply Last reply
          0
          • G gavinliu

            @SGaist
            When I use setFocusPolicy(Qt::NoFocus), then my edit cann't get the focus.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @gavinliu That's what setFocusPolicy(Qt::NoFocus) is supposed to do

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            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