Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, December 2007
Anti-aliasing question


Message 1 in thread

Hi,

in my program I need to draw different graphics primitives (implemented
as derived from QGraphicsItem), as well as a grid on QGraphicsView.
Grid lines are drawn in QGraphicsView::drawBackground method and their
thickness should be independent from zoom level.

For the graphics object one needs/wants anti-aliasing to be switched on
because pens of different thicknesses are used, zooming is used, it looks
better and so on.

On the other side the grid need to be drawn without anti-aliasing because
otherwise grid lines look smeared, even if the QPen has width=0 (=> setCosmetic(true)).

How it could be possible to satisfy the both requirements ?


Thanks,
Albert

--
 [ signature omitted ] 

Message 2 in thread

This message was cancelled from within Mozilla.

--
 [ signature omitted ]