Pixel cache our label type
parent
32f8931d79
commit
55ae007233
|
@ -76,6 +76,8 @@ class Label:
|
||||||
self._x_offset = x_offset
|
self._x_offset = x_offset
|
||||||
|
|
||||||
txt = self.txt = QtWidgets.QGraphicsTextItem()
|
txt = self.txt = QtWidgets.QGraphicsTextItem()
|
||||||
|
txt.setCacheMode(QtWidgets.QGraphicsItem.DeviceCoordinateCache)
|
||||||
|
|
||||||
vb.scene().addItem(txt)
|
vb.scene().addItem(txt)
|
||||||
|
|
||||||
# configure font size based on DPI
|
# configure font size based on DPI
|
||||||
|
|
Loading…
Reference in New Issue