[Qt-interest] Row and Cell Properties of QTextTable
Kenneth Beck
nekkceb at comcast.net
Fri May 8 13:58:39 CEST 2009
I have been struggling to get grid lines and alternatingRowColors to
turn on in a QTextTable, output to OpenOffice document. I started with
the example program published in QtQuarterly recently. Lacking any
global setting in QTextTableFormat or QTextBlockFormat for
alternatingRowColors, I tried to do this in each cell, using
QTextCharFormat.setBackground, but that did not seem to have any effect,
not matter what color I set. Setting Font characteristics did have
effect, not not background.
As for grids, there is no setting in the QTextCharFormat for grids, but
there is for QTextBlockFormat, but that had no effect. I tried using
setBackground there as well, but no effect. Also, is is not totally
clear from documentation what constitutes a block. If I apply the
BlockFormat to my cursor while building the table, will that set things
for the whole table (as implied by description of a block)? Can I set
format for just the row I'm in, or just the column?
I am probably missing something conceptually here, can someone
straighten me out?
Qt ver 4.5.0, Visual Studio, with the integration 1.4.3 and Windows XP SP3.
More information about the Qt-interest-old
mailing list