[Qt-interest] QTextTable with single pixel border?
Israel Brewster
israel at frontierflying.com
Wed Apr 22 18:38:38 CEST 2009
Oh, I see what's going on. In trying to make my table fit the width of
the page, I set the cell width to a percentage length, which resulted
in a non-integer cell width. If I force my cells to an even integer
width, the thick lines go away. So your suggestion was completely
correct, I just have to tweak some of my other code to make it work.
Thanks again!
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
On Apr 22, 2009, at 8:15 AM, Israel Brewster wrote:
> Thanks for the response. My apologies for the delay in my follow up on
> this subject, but I was stuck out of state for a while. The code you
> suggested almost works, with cell spacing set to -1. The only
> remaining problem is that a couple of the cells show a heavy line
> separation. Most are fine, but columns 5 and 13 have a bold line on
> their right border - not double in appearance, but about twice as
> heavy as the other lines. I can live with this, but it is not
> desirable, so if anyone knows how I can fix it, I would love to hear
> it. Thanks!
>
> -----------------------------------------------
> Israel Brewster
> Computer Support Technician II
> Frontier Flying Service Inc.
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> (907) 450-7250 x293
> -----------------------------------------------
>
>
>
> On Apr 16, 2009, at 2:40 PM, Malyushytsky, Alex wrote:
>
>>
>> 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."
>>
>> _______________________________________________
>> 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
More information about the Qt-interest-old
mailing list