imperator
23rd November 2009, 10:13
Hi
I've got a couple of questions regarding QTableWidget/QTableWidgetItem.
I've got a table I want to populate with data from a string. My program reads strings from a file and I use QTableWidgetItem to pass them onto the table.
This works as intended, but each populated cell contains the whole string. I'd like a cell to hold the information in the string so I can present a message box when the user clicks a cell.
My question is if it's possible to present only the header from the string in the table cell, and keep the rest of the data hidden?
Regards,
André
I've got a couple of questions regarding QTableWidget/QTableWidgetItem.
I've got a table I want to populate with data from a string. My program reads strings from a file and I use QTableWidgetItem to pass them onto the table.
This works as intended, but each populated cell contains the whole string. I'd like a cell to hold the information in the string so I can present a message box when the user clicks a cell.
My question is if it's possible to present only the header from the string in the table cell, and keep the rest of the data hidden?
Regards,
André