Results 1 to 2 of 2

Thread: Maximize columns on QTableWidget

  1. #1
    Join Date
    May 2006
    Location
    Brasil
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Maximize columns on QTableWidget

    Hi all,

    It´s possible to maximize the columns according with qtablewidget horizontal size? When the table resizes, the column's size automatically adjust to new size.

    The functionality would be similar to the adjustment of the columns of the Signal/Slot dialog of the Qt Designer.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Maximize columns on QTableWidget

    Qt Code:
    1. _tableWidget->horizontalHeader()->setStretchLastSection( true );
    To copy to clipboard, switch view to plain text mode 

  3. The following 2 users say thank you to jacek for this useful post:

    marcelrc (27th May 2006), pherthyl (23rd August 2006)

Similar Threads

  1. QTableWidget: Disable 'snapping' to rows and columns?
    By PolyVox in forum Qt Programming
    Replies: 2
    Last Post: 8th October 2008, 20:04
  2. Resizing QTableWidget Columns
    By mbrusati in forum Qt Programming
    Replies: 4
    Last Post: 29th September 2008, 22:26
  3. Select columns from a QTableWidget
    By toglez in forum Qt Programming
    Replies: 10
    Last Post: 7th October 2007, 15:15
  4. QTableWidget - images in columns
    By bruccutler in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2007, 18:28
  5. Replies: 6
    Last Post: 5th March 2006, 21:05

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.