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

Qtableview header offset

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k 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.
  • K Offline
    K Offline
    kosharich
    wrote on last edited by
    #1

    Hi,
    i try to set offset value less 0 for vertical header of qtableview, but it seems that it doesn't work correctly. i don't see table content after.
    if i do this for horisontal header it works!

    code seems like:
    @
    ui->tableView->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
    ui->tableView->verticalHeader()->setOffset(-5);
    @

    qt version 4.7.3
    os windows 7

    Is it some bug?
    1
    !http://s48.radikal.ru/i121/1207/c8/bf9d24b628f6.png(1st image)!
    2, after mouse pressed and moved
    !http://s42.radikal.ru/i098/1207/c7/829998004d9c.png(2nd image)!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      I have updated your picture links. Please check out the "forum help":http://qt-project.org/wiki/ForumHelp#b642e0c67b7a32cc0b833ea119693dce for next time.

      Vote the answer(s) that helped you to solve your issue(s)

      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