PDA

View Full Version : Alignment on QTextTableCell



tranfuga25s
24th July 2007, 15:07
How can I define the alingment for a unique cell in a QTextTableCell ?

I've try with:



QTextCursor cur = celda.firstCursorPosition();
cur.blockFormat().setAlignment( Qt::AlignRight );
cur.insertText( "Total:" );
but it seems doest work... Even if tableFormat.setAlignment( Qt::AlignHCenter ); is set...

Any one could do that?

Thanks in advance... :o