Results 1 to 2 of 2

Thread: How to change columns order in a QTableView...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Cracow
    Posts
    56
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 10 Times in 10 Posts

    Default Re: How to change columns order in a QTableView...

    Qt Code:
    1. QHeaderView *header= tableView->horizontalHeader();
    2. header->moveSection( 1, 0 );
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to mazurekwrc for this useful post:

    cydside (20th April 2009)

Similar Threads

  1. updating QTableView with new qsl columns
    By sylvainb in forum Qt Programming
    Replies: 2
    Last Post: 28th January 2009, 21:51
  2. How to display selected columns in QTableView widget.
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:30
  3. Different delegates to different Columns of QTableView.
    By kaushal_gaurav in forum Qt Programming
    Replies: 4
    Last Post: 6th August 2008, 10:17
  4. Saving/Restoring columns order of QTreeWidget
    By mchara in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2007, 09:43
  5. Changing the order of columns in QTreeView
    By johnny_sparx in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 01:00

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.