MCPcopy
hub / github.com/PyQt5/PyQt / setSceneDims

Method setSceneDims

QGraphicsView/ImageView.py:88–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.update()
87
88 def setSceneDims(self):
89 if not self.pixmap:
90 return
91 self.setSceneRect(QRectF(QPointF(0, 0), QPointF(self.pixmap.width(), self.pixmap.height())))
92
93 def fitInView(self, rect, flags=Qt.IgnoreAspectRatio):
94 """剧中适应

Callers 1

setPixmapMethod · 0.95

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected