Lord_Navro
29th April 2011, 01:00
Hi, I use QTableWidget to display certain data. The definition is
The 1st row contains set of numbers separated by new lines
All the columns must have a fixed width
Now to the core: I set the columnWidth by the setColumnWidth function.
I have the textElide set to ElideNone
The alignment is set to Bottom | Center
I need the QTableWidgetItem to display the data (eventhough the lines get clipped a bit).
The problem is that when there is a line in the text that exceeds the columnWidth, other lines get omitted and just disappear, allthough the cellItem is high enough to contain them. See the example, the only change made is setting a bigger fontSize, the text in the cells wasnt changed
http://www.stud.fit.vutbr.cz/~xnavra23/TWIbug1.png
http://www.stud.fit.vutbr.cz/~xnavra23/TWIbug2.png
I have no idea why this happens and would appreciate any suggestion given.
The 1st row contains set of numbers separated by new lines
All the columns must have a fixed width
Now to the core: I set the columnWidth by the setColumnWidth function.
I have the textElide set to ElideNone
The alignment is set to Bottom | Center
I need the QTableWidgetItem to display the data (eventhough the lines get clipped a bit).
The problem is that when there is a line in the text that exceeds the columnWidth, other lines get omitted and just disappear, allthough the cellItem is high enough to contain them. See the example, the only change made is setting a bigger fontSize, the text in the cells wasnt changed
http://www.stud.fit.vutbr.cz/~xnavra23/TWIbug1.png
http://www.stud.fit.vutbr.cz/~xnavra23/TWIbug2.png
I have no idea why this happens and would appreciate any suggestion given.