How to hide vertical header but show horizontal header in QTableView



  • Hello,

    I'm trying to hide the vertical header but show the horizontal header of a QTableView.

    Calling view->horizontalHeader()->hide() hides both horizontal and vertical headers.
    Calling view->verticalHeader()->hide() hides both horizontal and vertical headers.

    How do I hide just the horizontal header and show the vertical header? Thanks


  • Lifetime Qt Champion

    Hi,

    Can you share how you are setting up your view ?

    Which version of Qt are you using ? On which platform ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.