Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QTableView item size

QTableView item size

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.9k Views
  • 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.
  • M Offline
    M Offline
    Matze5590
    wrote on last edited by
    #1

    Hi all,

    i try to add a row to QStandardItemModel. The Model has other rows with 5 columns. The new row only has 2 columns.

    Usually it looks like that:

    Header, Header, Header, Header, Header
    Item___Item___Item___Item___Item___
    Item___Item___Item___Item___Item___
    Item___Item___Item___Item___Item___

    but now i want to insert a row like this:
    Item___Item_______________________

    at the moment it is only like this:
    Item___Item___

    The problem is that the text in the second item is not completely shown.
    So how can i change the size of the second item, so that the row has the same width like the other rows?

    i hope you understand whats my problem!

    Thanks!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Did you look at QTabelView::setSpan()?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Matze5590
        wrote on last edited by
        #3

        Thanks, thats it!

        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