Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved Add widget into row into QTableView

    General and Desktop
    3
    3
    132
    Loading More Posts
    • 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.
    • F
      Fulgurance last edited by Fulgurance

      Hello, in my project,i need to make a QTableView with 2 or 3 widgets into the end of every rows (3 into only one column). Is it possible to do that?

      1 Reply Last reply Reply Quote 0
      • MarKS
        MarKS last edited by

        check setIndexWidget() as documented here https://doc.qt.io/qt-5/qabstractitemview.html#setIndexWidget

        1 Reply Last reply Reply Quote 1
        • mrjj
          mrjj Lifetime Qt Champion last edited by

          Hi
          Do note that setIndexWidget will become heavy if you have many rows.
          In that case, using a delegate provides far better performance.

          1 Reply Last reply Reply Quote 3
          • First post
            Last post