Re: [Interest] Double-buffering QGraphicsItem with QImage on retina display

2017-03-16 Thread Patrick Stinson
QImage.setDevicePixelRatio(2) seemed to do the trick along with a Image that is twice as large and manual translation of the appropriate coordinates. QPainter does the rest. Good to know. > On Mar 16, 2017, at 8:32 PM, Patrick Stinson wrote: > > That’s a good setting to know about, so thank y

Re: [Interest] Double-buffering QGraphicsItem with QImage on retina display

2017-03-16 Thread Patrick Stinson
That’s a good setting to know about, so thank you for pointing it out. Unfortunately, this isn’t what I am trying to accomplish. I have a singleton QGraphicsItem that acts as a canvas and is always resized to fit the view’s viewport. This canvas item paints lines to a QImage buffer with each QPo

Re: [Interest] Double-buffering QGraphicsItem with QImage on retina display

2017-03-16 Thread Ch'Gans
On 17 March 2017 at 16:01, Patrick Stinson wrote: > Hi there! > > I am implementing handwriting with the apple pencil and am double-buffering > each stroke on a QImage before passing the resulting pixmap and bounding rect > for the stroke to a QGraphicsItem. The problem is that painting to the Q

[Interest] Double-buffering QGraphicsItem with QImage on retina display

2017-03-16 Thread Patrick Stinson
Hi there! I am implementing handwriting with the apple pencil and am double-buffering each stroke on a QImage before passing the resulting pixmap and bounding rect for the stroke to a QGraphicsItem. The problem is that painting to the QImage is not at retina resolution which is what you get whe