Results 1 to 2 of 2

Thread: Any way to preserve QTableView entire geometry?

  1. #1
    Join Date
    Sep 2011
    Posts
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Any way to preserve QTableView entire geometry?

    I asked google, but can`t seem to find a 'Qt way' to preserve the info about column withds and/or hidden columns in a QTableView. I want to provide (some of) the users with the possibility to resize it, and then save it somewhere so that I can restore at next run.

    Is there a way to do this without iterating over the view and making some sort of a map between logical index and with/visibility?

  2. #2
    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: Any way to preserve QTableView entire geometry?

    There are saveGeometry() and saveState() methods, but unfortunatley they won't apply here.

    I don't think there's out-of-a-box solution for that so you may need to implement it yourself for this particular purpose.

Similar Threads

  1. Set hover style for entire row in QTableView
    By dpace in forum Qt Programming
    Replies: 0
    Last Post: 22nd September 2011, 21:45
  2. Replies: 5
    Last Post: 11th June 2011, 15:29
  3. How to preserve item's icon color ?
    By AlexSudnik in forum Qt Programming
    Replies: 2
    Last Post: 29th April 2011, 22:58
  4. How to preserve selection in QTreeView
    By daren in forum Qt Programming
    Replies: 1
    Last Post: 17th December 2009, 03:14
  5. preserve collapse/expand of a QTreeView
    By yazwas in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2009, 09:49

Tags for this Thread

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.