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. QTableWidget set vertical header width

QTableWidget set vertical header width

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.5k 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.
  • Z Offline
    Z Offline
    za83
    wrote on last edited by
    #1

    How to set verctical header width?

    1 Reply Last reply
    1
    • D Offline
      D Offline
      DBoosalis
      wrote on last edited by
      #2

      Have you tried creating your own header subclassed from QHeaderView, and reimplementing the sizeHint()

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        za83
        wrote on last edited by
        #3

        I solved the problem by using
        verticalHeader()->setFixedWidth

        1 Reply Last reply
        1
        • P Offline
          P Offline
          poorBob
          wrote on last edited by
          #4

          Or maybe, if it is simple view, You can use: "QTableView::setRowHehght(...)":http://qt-project.org/doc/qt-4.8/qtableview.html#setRowHeight ?

          with best regards,
          poorBob

          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