Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Filter QHeaderView::restoreState() when Table changes

Filter QHeaderView::restoreState() when Table changes

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 726 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • francescmmF Offline
    francescmmF Offline
    francescmm
    wrote on last edited by
    #1

    Hi,

    I save the QHeaderView state (in QByteArray format) in an INI file to remember the status of the current execution and load it next time the application is executed. This application has a QTableView filled with a custom model inherited from QAbstractTableModel.

    The problem I have is that QHeaderView::restoreState() not checks that the column values and number I get from INI file are the values I have now in the model of the table. I have completly access to the columns of the model and to the INI file.

    Any suggestion?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved