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

QTableView

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 170 Views
  • 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
    cc_cc
    wrote on last edited by
    #1

    When I use QSqlTableModel as the model of QTableView, all the values ​​in the first column flash by, and then only the first value is displayed.
    When the mouse hovers over other rows, the value of the first column of that row will be displayed.
    How can I make the first column always displayed?

    JonBJ 1 Reply Last reply
    0
    • C cc_cc

      When I use QSqlTableModel as the model of QTableView, all the values ​​in the first column flash by, and then only the first value is displayed.
      When the mouse hovers over other rows, the value of the first column of that row will be displayed.
      How can I make the first column always displayed?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @cc_cc said in QTableView:

      all the values ​​in the first column flash by

      When the mouse hovers over other rows, the value of the first column of that row will be displayed.

      Welcome. I for one do not understand what you are saying, especially about "flashing by", when it happens, what it looks like, etc.? This implies something is changing, once a QTableView is displaying data nothing should be changing. There should be no issue about displaying any columns from the table. Your code should only be a few lines long to test a minimal example.

      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