为啥在 pyside2 中,不能使用 QTranform mul QPointF?

Posted

技术标签:

【中文标题】为啥在 pyside2 中,不能使用 QTranform mul QPointF?【英文标题】:why in pyside2, cannot use QTranform mul QPointF?为什么在 pyside2 中,不能使用 QTranform mul QPointF? 【发布时间】:2019-09-24 07:05:48 【问题描述】:
from PySide2.QtGui import QTransform
from PySide2.QtCore import QPointF
A = QTransform()
B = QPointF()
A*B

【问题讨论】:

【参考方案1】:

从这里的文档看来,您可以反过来将它们相乘: https://doc.qt.io/archives/qt-4.8/qtransform.html#operator-2a-45

【讨论】:

以上是关于为啥在 pyside2 中,不能使用 QTranform mul QPointF?的主要内容,如果未能解决你的问题,请参考以下文章

PySide2 和 Matplotlib:如何让 MatPlotLib 在单独的进程中运行? ..因为它不能在单独的线程中运行

为啥我得到一个 TypeError: PySide2.QtCore.QStringListModel.setData(): no enough arguments

为啥我会收到错误:无法在 macOS Catalina 下运行 PySide2 程序的“uic”:“execvp:没有这样的文件或目录”?

PySide2:不能在不退出 APP 的情况下关闭 QMessageBox

将 Pyqtgraph 嵌入到 PySide2

pyside2pycharm关联方法