Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. QTableView row selection highlight pyside2 issue
Forum Updated to NodeBB v4.3 + New Features

QTableView row selection highlight pyside2 issue

Scheduled Pinned Locked Moved Unsolved Language Bindings
6 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    TedX
    wrote on last edited by
    #1

    I'm having problems with getting the full row to be highlighted on selection in a QTableView despite have done:
    self.setSelectionMode(QAbstractItemView.MultiSelection)
    self.setSelectionBehavior(QTableView.SelectRows)

    Initially only the column clicked on highlights. If I drag another window over the table window and then bring the table window back to the top the full row is highlighted. If I click and drag within a column cell the full row is hightlighted.

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

      Hi
      It sounds like a repaint issue or something. I have not noticed in c++.
      You could hook up to one of the selectionChanged signals for QTableView
      and call update just to check.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TedX
        wrote on last edited by
        #3

        Already tried calling update and repaint on selectionChanged with no affect.

        mrjjM 1 Reply Last reply
        0
        • T TedX

          Already tried calling update and repaint on selectionChanged with no affect.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @TedX

          Ok, and this is a in a minimal example ?

          I cant get it to do odd things in c++.
          Might be a pyside2 bug/feature

          What version of Qt are you using?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TedX
            wrote on last edited by
            #5

            I'm using version 5.6.1.

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

              Ok. i cant find any other reporting that issue.
              You could look in https://bugreports.qt.io
              If you can reproduce it with a minimal example, then open bug report.

              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