Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. header data
    Log in to post

    • UNSOLVED How to rename column headers in Table View?
      General and Desktop • header table view header data set header data • • SoleyRan  

      6
      0
      Votes
      6
      Posts
      644
      Views

      QHeaderView does not use delegates unfortunately. The solution I'd suggest is to have a QLineEdit widget spawn on top of the header to do the editing rather than spawning a dialog
    • UNSOLVED Instantely updateing headerData of QItemModel (QTreeView) when changing selection
      General and Desktop • update selection header data instantly • • gde23  

      3
      0
      Votes
      3
      Posts
      909
      Views

      https://en.wikipedia.org/wiki/Dependency_inversion_principle Basically what you are doing is evil. You should connect m_tree_view->selectionModel()'s currentIndexChanged() signal with a slot that calls setHeaderData in the model. that's all