Results 1 to 3 of 3

Thread: vertical header of QTableWidget is merged into first column after upgrading to QT5.11

  1. #1
    Join Date
    Mar 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Question vertical header of QTableWidget is merged into first column after upgrading to QT5.11

    Recently I have upgraded to QT5.11 from QT4.8. There is one issue about QTableWidget. The following is the code used to create one table. The vertical header is always merged into first column. It's really annoying because one can not resize the width of the vertical header. Does anyone get the same issue? Thanks a lot.

    QTableWidget* table = new QTableWidget(3, 3, this); grid->addWidget(table);
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: vertical header of QTableWidget is merged into first column after upgrading to QT

    Have you tried a different widget style?

    Maybe that's how the currently used style draws the vertical header

    Cheers,
    _

  3. #3
    Join Date
    Mar 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: vertical header of QTableWidget is merged into first column after upgrading to QT

    Thanks a lot. Will try it.

Similar Threads

  1. Resizable width of vertical Header in QTableWidget
    By zizou2981 in forum Qt Programming
    Replies: 6
    Last Post: 26th August 2016, 13:32
  2. Cannot hide QTableWidget's vertical header.
    By adutzu89 in forum Newbie
    Replies: 2
    Last Post: 25th January 2014, 11:12
  3. change Qtablewidget vertical header displayrole
    By advseo32 in forum Qt Programming
    Replies: 10
    Last Post: 12th August 2013, 13:21
  4. Replies: 1
    Last Post: 6th August 2013, 21:44
  5. Replies: 3
    Last Post: 20th January 2011, 13:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.