Pixel cache our label type

fsp_feeds
Tyler Goodlet 2021-08-29 16:01:51 -04:00
parent 32f8931d79
commit 55ae007233
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ class Label:
self._x_offset = x_offset
txt = self.txt = QtWidgets.QGraphicsTextItem()
txt.setCacheMode(QtWidgets.QGraphicsItem.DeviceCoordinateCache)
vb.scene().addItem(txt)
# configure font size based on DPI