Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将QPoint类型更改为QpointF ,但我只能看到示例“QpointF to Qpoint”
QPoint
QpointF
point = QtCore.QPoint(100.2, 144.23)
直接使用QPointF类:point = QtCore.QPointF(100.2, 144.23).
QPointF
point = QtCore.QPointF(100.2, 144.23)
如果您已经QPoint想将其转换为QPointF:
yourQPoint = QtCore.QPoint(12, 14) point = QtCore.QPointF(yourQPoint)