How to Set the item has fixed line width(bigger 1 ) in QGraphicsView And not be transformed after view transformation changed?
-
is the box border belong to the bmp file?
-
is the box border belong to the bmp file?
@Flotisable
no, it is aQGraphicsRectItem
-
is the box border belong to the bmp file?
@Flotisable
I want to useQGraphicsRectItem
to come true it. butQGraphicsRectItem
's line width was also zoomin after view zoomin. -
@Flotisable
no, it is aQGraphicsRectItem
-
@Flotisable
I also findQPen::setCosmetic
andGraphicsItem::ItemIgnoresTransformations.
. I think, them can save my problem.I am testing these code now. hold on.
-
Yes, But it caused another problem. I was crazy.
-
Yes, But it caused another problem. I was crazy.
@joeQ
so what's the new problem? -
@joeQ
so what's the new problem?First, I want to save this problem item line width also zoomed after view zoom, I find the solution.
But, this solution, caused another problem screen flashing. I was crazy at yesterday.
Today, I must to save the screen flashing. I don't know ho to save it. so, i think, i was wrong at the first step.
To fixed the line width(bigger 1), I used the wrong way at first.
I find the page now. It maybe can help me.
-
i just want to use QGraphicsView and QGraphicsScene to show some item.
but, i has some problem.
i want to complete this function. like the following bmp file;
help me. thank u.