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. QTableView + Custom Model + Custom Delegate
Forum Updated to NodeBB v4.3 + New Features

QTableView + Custom Model + Custom Delegate

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.0k 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.
  • D Offline
    D Offline
    denix56
    wrote on 6 May 2016, 13:37 last edited by
    #1

    I have such problem - if i set column width or resizecolumnstocontent then i cant add new items to the tabel. they are added to the model, but paint method is not called. I tried to reinplement SizeHint for delegate and to return sizehintrole for items in model.

    D 1 Reply Last reply 13 May 2016, 07:32
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 May 2016, 21:47 last edited by
      #2

      Hi and welcome to devnet,

      Your description is a bit vague. Can you share your code so we can take look at it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply 28 Feb 2017, 05:38
      0
      • D denix56
        6 May 2016, 13:37

        I have such problem - if i set column width or resizecolumnstocontent then i cant add new items to the tabel. they are added to the model, but paint method is not called. I tried to reinplement SizeHint for delegate and to return sizehintrole for items in model.

        D Offline
        D Offline
        denix56
        wrote on 13 May 2016, 07:32 last edited by
        #3

        It was solved by adding begininsertcolumns

        1 Reply Last reply
        0

        1/3

        6 May 2016, 13:37

        • Login

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