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. Using WA_MacShowFocusRect on QTableView with a model - removing the focus when cell is clicked.

Using WA_MacShowFocusRect on QTableView with a model - removing the focus when cell is clicked.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 928 Views 2 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.
  • C Offline
    C Offline
    ChronoG
    wrote on last edited by
    #1

    I have found 3 solutions in the forum searching for; WA_MacShowFocusRect. None are talking about focus on "cell".

    How would I prevent the blue focus on the cell?

    Cheers

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Out of curiosity, what exact effect do you want to achieve ?

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

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChronoG
          wrote on last edited by ChronoG
          #4

          I am looking to remove the focus border around the cell of QTableView when clicked inside it, I am using QStandardItemModel to populate it. On a mac the blue focus border is difficult to remove.

          For example
          0_1524781555073_Screen Shot 2018-04-26 at 23.24.54.png

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

            See this thread for a similar question.

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

            1 Reply Last reply
            2

            • Login

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