PDA

View Full Version : QTableWidget and setSpan



swiety
17th October 2007, 11:31
I have QTableWidget( qt 4.3.2 ) witch 7 columns and very simple code:


for(int i=0; i<rowCount();i++)
{
if(i%2==0)
{
resizeRowToContents( i );
item( i, 5 )->setText("aaaaaa" );
setSpan( i, 1, i, 7 );
}
}
After that I have something like this
before
http://www.i-imagehost.com/uploads/35e59a7ece.jpg
after
http://www.i-imagehost.com/uploads/876faa38ad.jpg
Why this code doesn't work? It's bug or what?

swiety
17th October 2007, 11:47
my mistake - I have 8 columns :)