this question has answer here:
i have qgraphicsscene
filled qgraphicsitems
, , user able pan , zoom around inspect of various qgraphicsitems
. however, have qgraphicstextitem
label stays put @ top left of screen. ignoring zooms easy, can setflags(qgraphicsitem::itemignorestransformations)
, i've yet figure out how force position stay @ top-left. what's best way make label "float" in same place?
perhaps want put regular qlabel
right on view instead of trying make part of scene stay in 1 place discussed in this question.
note: mentioned in answer, trick not work hardware accelerated views. in these cases, need make text items part of scene.
Comments
Post a Comment