GraphicsItem's area that can be selected keep size
-
Hi,bro
The area that can be selected keep size ,don't change with boundingRect() 's changedwhen geometry change i do this:
prepareGeometryChange(); rectBound.setTopLeft( topLeft ); rectBound.setWidth( newWidth); rectBound.setHeight(newHeight);
I'm not good at English and I don't know if I can express myself clearly.
Hope to get helps;
thx -
Hi,
Sorry but it's not really clear. You might want to post images that shows your issue.
-
Hi,bro
The area that can be selected keep size ,don't change with boundingRect() 's changedwhen geometry change i do this:
prepareGeometryChange(); rectBound.setTopLeft( topLeft ); rectBound.setWidth( newWidth); rectBound.setHeight(newHeight);
I'm not good at English and I don't know if I can express myself clearly.
Hope to get helps;
thx@markwang said in GraphicsItem's area that can be selected keep size:
if I can express myself clearly
The
boundingRect
does NOT change, but you want to change
OR
it changed, but you want to have it fixed?EDIT:
The area that can be selected keep size ,don't change with boundingRect() 's changed
Your pixmap doesn't change when you change the boundingRect?