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. QTreeWidget: how to make the item cursor (dotted frame) invisible?
Forum Updated to NodeBB v4.3 + New Features

QTreeWidget: how to make the item cursor (dotted frame) invisible?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 949 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.
  • V Online
    V Online
    Violet Giraffe
    wrote on last edited by Violet Giraffe
    #1

    I have set selection mode to NoSelection, but I still get the cursor frame. How can I get rid of it?

    alt text

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

      Well, its has been discussed before.
      https://forum.qt.io/topic/18888/how-to-remove-focus-rectangle-on-qlistview-and-similar-using-qstyleditemdelegate-with-style-sheets

      V 1 Reply Last reply
      1
      • mrjjM mrjj

        Well, its has been discussed before.
        https://forum.qt.io/topic/18888/how-to-remove-focus-rectangle-on-qlistview-and-similar-using-qstyleditemdelegate-with-style-sheets

        V Online
        V Online
        Violet Giraffe
        wrote on last edited by
        #3

        @mrjj
        There's no answer there. People discuss outline: none;, but it does not remove the cursor frame. I don't know what it does.

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          They also try to remove the focus rect which is what you see in the picture.
          It can be removed using a Delegate and draw nothing.

          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