[Qt-interest] Difference between QImage and QWidget when drawing a dotted line

Ronny Brendel ronnybrendel at gmail.com
Thu Aug 5 14:14:54 CEST 2010


Hi,

I have come across a imo weird behavior.
When drawing a dotted line on a QImage, the length of a dot is one pixel.
When in turn drawing on a widget directly the dots have a length of two pixels.

Why is that?

For me it is an inconvenience, because I have to introduce a (not needed)
qimage in order to achieve similar looks.

Or am I missing something?

Here's an image with both looks of the same painting commands
http://a.imageshack.us/img375/5499/commitment1.png

ps: please put me on the cc (or reply-all) since I am not subscribed to the
list.

regards
Ronny



More information about the Qt-interest-old mailing list