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. dotted border ?
Forum Updated to NodeBB v4.3 + New Features

dotted border ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 294 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
    Duy Khang
    wrote on last edited by
    #1

    how can i disable dotted border arround selected cell on QTableView ?
    963db033-e9bf-4385-8ab6-f42e027fb0c5-dot.png

    artwawA 1 Reply Last reply
    0
    • D Duy Khang

      how can i disable dotted border arround selected cell on QTableView ?
      963db033-e9bf-4385-8ab6-f42e027fb0c5-dot.png

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @Duy-Khang have you tried setSelectionMode() or it will not do the job for you?

      For more information please re-read.

      Kind Regards,
      Artur

      D 1 Reply Last reply
      1
      • D Offline
        D Offline
        Duy Khang
        wrote on last edited by
        #3

        thank you, I have just tried change focusPolicy from StrongFocus to NoFocus and it works !

        1 Reply Last reply
        0
        • artwawA artwaw

          @Duy-Khang have you tried setSelectionMode() or it will not do the job for you?

          D Offline
          D Offline
          Duy Khang
          wrote on last edited by
          #4

          @artwaw Initially,I set header background color is red and when i select a row then header change to another color, why section header background color changes when i select a row in table view.

          artwawA JonBJ 2 Replies Last reply
          0
          • D Duy Khang

            @artwaw Initially,I set header background color is red and when i select a row then header change to another color, why section header background color changes when i select a row in table view.

            artwawA Offline
            artwawA Offline
            artwaw
            wrote on last edited by
            #5

            @Duy-Khang I am sorry but that's the knowledge I don't have - never felt the urge to change the defaults. Perhaps someone who knows more about the front-end part of Qt will drop in with a help.

            For more information please re-read.

            Kind Regards,
            Artur

            1 Reply Last reply
            1
            • D Duy Khang

              @artwaw Initially,I set header background color is red and when i select a row then header change to another color, why section header background color changes when i select a row in table view.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @Duy-Khang
              Confirm your SelectionBehavior is set to QAbstractItemView::SelectRows, not default QAbstractItemView::SelectItems? Confirm the header you select is indeed vertical not horizontal?

              1 Reply Last reply
              1

              • Login

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