Results 1 to 5 of 5

Thread: Fixed (Freeze) column in QTableWidget

  1. #1
    Join Date
    Sep 2006
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Fixed (Freeze) column in QTableWidget

    How can i set fixed (Freeze) columns (say first and second column) of a QTableWidget, so if i scroll those columns are always visible?
    Like we have Freeze column in MS-EXCEL.
    Last edited by chatarpal; 4th February 2009 at 13:38.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Fixed (Freeze) column in QTableWidget

    You can put two table widgets right next to each other.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2012
    Posts
    2

    Default Re: Fixed (Freeze) column in QTableWidget

    Is there another way to freeze columns without putting two table widgets, but with one one?

  4. #4
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Fixed (Freeze) column in QTableWidget

    There's an qt example how to do that.
    I hope that helps.

  5. #5
    Join Date
    Jan 2012
    Posts
    2

    Default Re: Fixed (Freeze) column in QTableWidget

    I've seen that example, but i need less hacky way to make frozen column.

Similar Threads

  1. QTableWidget stretch a column other than the last one
    By roleroz in forum Qt Programming
    Replies: 6
    Last Post: 4th February 2015, 06:35
  2. Fixed Column in QTreeview
    By ormonde in forum Qt Programming
    Replies: 3
    Last Post: 12th May 2008, 07:49
  3. QTableWidget column width and resizing
    By shooogun in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2008, 22:31
  4. Replies: 2
    Last Post: 14th August 2007, 15:16
  5. QTableWidget column and row sizes
    By Arthur in forum Qt Programming
    Replies: 4
    Last Post: 27th January 2006, 11:03

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.