[Qt-interest] Aligning QBrush texture
Josh
jnfo-c at grauman.com
Wed Sep 1 20:26:46 CEST 2010
Thanks! This is really helpful, I should have seen it.
Josh
>> ... Any hints on how to do this? I was thinking about translating
>> the painter, but I think this would make my rectangle draw at a a
>> different location.
>
> You can tweak the brush origin with QPainter::setBrushOrigin()
> http://doc.qt.nokia.com/latest/qpainter.html#setBrushOrigin
>
> ...and I just saw that QBrush has a transform...
> http://doc.qt.nokia.com/latest/qbrush.html#setTransform
> Not sure if that will do what you need, though. Didn't test it.
> _______________________________________________
> 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