Hello all,
So I'm now having some troubles with QGraphicsItems....specifically when I want to print QGraphicsTextItem. When I print the text to my scene, I can't see it because the scale of the scene shrinks the text too much. So when use scale to enlarge the scene, the text becomes larger...but then too large....
Any ideas how to make this text a static size, just like my QGraphicsLineItem, which always stays of pixel width one regards of the scale from the scene?
Second problem is when I draw a QGraphicsLineItem between two points and it is either _perfectly_ horizontal or vertical, then it will not disappear unless I minimize the window.... this is my code...
Qt Code:
if(showMeasureLine){ m_MeasureLine->show(); } else{ MeasureLine->hide(); MeasureLine->update(); }To copy to clipboard, switch view to plain text mode
this code is within mouseMoveEvent(QMouseEvent *event)....
it works for when the line is diagonal etc. but not when 90, 180, 270 or 360 degrees
Bookmarks