[Interest] Drawing grid with Qt::DashLine in QGraphicsView
jswigart at gmail.com
Thu May 3 20:19:27 CEST 2012
painter->setPen( Qt::DashLine );
I'm wanting to use a dashed line pen when drawing a grid in a subclass
of QGraphicsView. My grid code draws the grid fine, however, it appears
that the dashed line is probably drawn in sort of a line space, as opposed
to sort of a global space(for lack of a better term) dashed line spacing,
so as you scroll the view around, and the paint functions draw the new bits
of exposed grid, the dashed lines don't form a consistent dashed line
between the previously drawn stuff and the newly exposed stuff. Is there a
way around this ? This would suggest that none of the line styles are
likely compatible with these sort of pen styles.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest