LimeReport icon indicating copy to clipboard operation
LimeReport copied to clipboard

Why item border lines have different width when scale the view?

Open linkoln opened this issue 7 years ago • 5 comments

As you can see in the red and blue rect, it's strange that the border lines have different width when I scale the report view . I have test it in the latest code and the problem exists.Wish your help!

linkoln avatar Dec 26 '18 01:12 linkoln

This happens because, in fact, 2 frames are superimposed on each other and the calculation of coordinates when scaling due to rounding does not take place accurately enough. The coordinates are calculated by the QGraphicsScene and i can't change it behavior :(. When you print or export a report, this will not happen. Maybe in the future i will create TableItem to prevent this behavior.

fralx avatar Dec 26 '18 11:12 fralx

Yeah, when print or export a report, it's no problem. But i create a demo which implements my own QGraphicsItem and QGraphicsView and show the view,when i scale the view it don't have this problem. I'm confused with it.

linkoln avatar Dec 27 '18 09:12 linkoln

Look at this pictures, it is a qgraphicscene example from qt. I just scale the picture and you can see the bold border exists on 1 screen and doesn't on second. 1 2

fralx avatar Dec 27 '18 16:12 fralx

You are right.So the only way to solve this problem is to change the QGraphicsScene 's source code?Have any way else?

linkoln avatar Dec 29 '18 01:12 linkoln

At the moment i don't see the way how to fix this problem. But it wasn't critical for me and i didn't research deeply how to solve the problem. May be in future i will find the way :)

fralx avatar Dec 30 '18 17:12 fralx