[Qt-interest] QGraphicsView and vertical/horizontal lines which do not display

Cecilia Castillo castillo23 at llnl.gov
Thu Dec 18 23:43:31 CET 2008


Sean -

Thanks for your reply.  It turns out that the problem was with my 
bounding box.  When my nodes were vertical/horizontal, the bounding 
box had no area.  I had been adding some space around my line by 
using a portion of the pen size, but when I changed to a cosmetic pen 
(with a size of 0)...the bounding box no longer had area.

Regards,
   Cecilia

>Hi,
>
>Cecilia Castillo wrote:
>>  When I display my initial set of points and lines, if the lines are
>>  exactly vertical or horizontal, they sometimes do not display.  If I
>>  move a point which causes the line to be off vertical or horizontal,
>>  the line appears.  If I move the point back and the line goes
>>  vertical/horizontal...the line disappears.
>>  
>I have seen this on occasion too. In my case, disabling antialiasing for
>those objects that are vertical or horizontal lines seemed to fix the issue.
>
>Worth a try.
>
>Sean
>
>_______________________________________________
>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