Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTableWidget items
Qt 6.11 is out! See what's new in the release blog

QTableWidget items

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 847 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.
  • R Offline
    R Offline
    registerme
    wrote on last edited by
    #1

    I created a QTableWidget and want to have each item/cell of the table editable. When I try to call tableWidget->itemAt(x,y)->setText, the item does not seem to be there (seg fault). I could create a widget for each cell, but it seems very tedious. Is this the way the QTableWidget supposed to be?

    Also none of the cells is editable. I tried in the designer to mark the cell item as editable, but it is not working.

    I don't see a way to set the column width either. Any help is appreciated.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Please do not double-post. I am closing this thread.

      Please use this "thread":https://qt-project.org/forums/viewthread/42688/ instead.

      (Z(:^

      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