PDA

View Full Version : spanning in QTableWidget acting weird



ferrari
15th October 2008, 11:31
Hello everyBody,

I've been puzzled for a while with this:

I have a QTableWidget subclass called ClientTable like this:

Year Details
_________________
(0,0) | (0,1)
(1,0) | (1,1)
(2,0) | (2,1)
(3,0) | (3,1)
(4,0) | (4,1)
(5,0) | (5,1)
(6,0) | (6,1)
.
.
(n,0) | (n,1)
_________________


So if in the same year, there are two details I span (n, 0) with (n+1,0)
everything act normally. But when (n+1,0) is another date and also spanned, the span won't work as expected.

In this case what should I exactly do ?

-Should I subclass QTableItemWidget ?
-Or just keep track of spanning ?
-Use Directly QTableView ?

Thank you for your concern. Your help is very very appreciated.