Results 1 to 2 of 2

Thread: QTableWidget columns to expand to window size

  1. #1
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QTableWidget columns to expand to window size

    I have multiple QTableWidgets with varying numbers of columns. I want the table to adjust to the size of the window so that it fills the window, even if there is only one column.

    - BRC

  2. #2
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QTableWidget columns to expand to window size

    Nevermind - found it in another post:
    _tableWidget->horizontalHeader()->setStretchLastSection( true );

Similar Threads

  1. Restore the size of the window after minimize
    By SkripT in forum Qt Programming
    Replies: 10
    Last Post: 22nd September 2016, 16:23
  2. Replies: 1
    Last Post: 9th February 2007, 09:41
  3. Maximize columns on QTableWidget
    By marcelrc in forum Newbie
    Replies: 1
    Last Post: 21st May 2006, 15:34
  4. Replies: 6
    Last Post: 5th March 2006, 21:05
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.