[Qt-interest] QTextTable with single pixel border?
Malyushytsky, Alex
alex at wai.com
Fri Apr 17 00:40:49 CEST 2009
Is single line drawn over single line is fine?
Have you played with
QTextTableFormat tableFormat;
tableFormat.setCellSpacing(0);
if it gives you double line , have you tried
tableFormat.setCellSpacing( -1 );
Regards,
Alex
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Israel Brewster
Sent: Thursday, April 16, 2009 9:16 AM
To: qt-interest List
Subject: Re: [Qt-interest] QTextTable with single pixel border?
Ok, this is driving me nuts. I would have thought this would be a
basic feature, real simple to implement, but try as I might I can not
get it to give me a single line between cells. What appears to be
happening is that it outlines each cell - fair enough, except for the
fact that that means I always get a double line between cells (one for
the cell on the left and one for the cell on the right) additionally,
I seem to be getting an extra border all the way around the entire
table. And I can't seem to get any responses to my question here,
either. Am I asking wrong? Or is this basic table design really not
possible (at least, without re-writing substantial chunks of Qt code)?
I can't imagine designing a table where single lines between cells
isn't a possibility...
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
On Apr 13, 2009, at 12:17 PM, Israel Brewster wrote:
> Is there any way to make a QTextTable where the cells are separated by
> a single-pixel wide black line? I'm looking for just a basic grid
> (with text in the cells) - no fancy effects or anything. The default I
> am getting is more of a double line, which I don't want. I tried using
> the setBorderStyle(QTextFrameFormat::BorderStyle_Solid); command, but
> that didn't help. Thanks!
>
> -----------------------------------------------
> 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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
More information about the Qt-interest-old
mailing list