[Qt-interest] QTextTable with no Grid

Israel Brewster israel at frontierflying.com
Mon May 4 18:15:08 CEST 2009


On May 3, 2009, at 5:05 PM, Kenneth Beck wrote:

> AngelWarrior wrote:
>>
>> Hi
>>
>> Is it possible to create a qtexttable with no grid by setting
>> QTexttableformat ???
>> --  
>> _/\_
>> With Regards
>> SB Angel Warrior
>>
> Hmmm, I've just been struggling to create a QTextTable WITH a grid.
> Where did you find to turn it ON? I have been writing mine out to an  
> ODF
> file, and in looking at that file using OpenOffice, the grids appear
> when editing, but not in the final print.
Take a look at QTextTableFormat::setBorder() and  
QTextTableFormat::setBorderStyle(), and potentially  
QTextTableFormat::setSpacing(). The first sets the thickness of the  
border, the second sets the style (no line, single line, double line,  
dashed, etc) and the third sets the spacing (obviously :P) between the  
cells, which will affect the appearance of your grid. If you want no  
line, just use the setBorderStyle function to set the border style to  
none.

-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------

> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list