Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. header data

    Log in to post
    • All categories
    • S

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

      6
      0
      Votes
      6
      Posts
      1104
      Views

      VRonin

      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

    • gde23

      Unsolved Instantely updateing headerData of QItemModel (QTreeView) when changing selection
      General and Desktop • header data update selection instantly • • gde23

      3
      0
      Votes
      3
      Posts
      953
      Views

      VRonin

      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