Re: [Development] scaling the background of QGraphicsView or QGraphicsScene

2016-10-02 Thread itviewer
Hi Sean, Thank you very much, you helped me solve the problem that let me think for several days. you are a good man! itviewer From: Sean Harmer Date: 2016-10-02 17:10 To: development Subject: Re: [Development] scaling the background of QGraphicsView or QGraphicsScene Hi, use a cosmetic

Re: [Development] scaling the background of QGraphicsView or QGraphicsScene

2016-10-02 Thread Sean Harmer
Hi, use a cosmetic pen (width of zero). Cheers, Sean On 02/10/2016 02:18, 心翔 wrote: Hi, I subclass the QGraphicsView to reimplement drawBackground and wheelEvent and want to get this effect: but when I wheel the mouse, the background point will scale also。 ​ how can implement that it onl

[Development] scaling the background of QGraphicsView or QGraphicsScene

2016-10-01 Thread 心翔
Hi, I subclass the QGraphicsView to reimplement drawBackground and wheelEvent and want to get this effect: but when I wheel the mouse, the background point will scale also。 ​ how can implement that it only scale t*he spacing between points but not the point itself,like this:* *​* *the code