Results 1 to 2 of 2

Thread: QTableWidget columns size

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget columns size

    QTableView::horizontalHeader
    QHeaderView::setResizeMode(QHeaderView::ResizeToContents)

    Hope you get the idea

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

    Axtroz (24th October 2012), frankiefrank (8th February 2011), ^NyAw^ (26th March 2010)

Similar Threads

  1. How to rearrange columns in QTableWidget
    By rittchat in forum Qt Programming
    Replies: 0
    Last Post: 23rd December 2009, 11:17
  2. QAbstractItemModel: size of columns
    By kima in forum Qt Programming
    Replies: 0
    Last Post: 24th October 2008, 09:16
  3. Resizing QTableWidget Columns
    By mbrusati in forum Qt Programming
    Replies: 4
    Last Post: 29th September 2008, 22:26
  4. QTableWidget columns to expand to window size
    By bruccutler in forum Newbie
    Replies: 1
    Last Post: 13th April 2007, 16:02
  5. Maximize columns on QTableWidget
    By marcelrc in forum Newbie
    Replies: 1
    Last Post: 21st May 2006, 15:34

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
  •  
Qt is a trademark of The Qt Company.