[Interest] Drawing grid with Qt::DashLine in QGraphicsView
Jeremy
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.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120503/7c388076/attachment.html>
More information about the Interest
mailing list