1
我有以下的測試代碼:「的QPainter ::開始:塗料設備返回發動機== 0,類型:1」 與PySide
import sys
from PySide.QtGui import *
app = QApplication(sys.argv)
widget = QWidget()
painter = QPainter(widget)
一旦創建了QPainter對象,我得到的錯誤消息:
QPainter::begin: Paint device returned engine == 0, type: 1
爲什麼?
啊,所以這就是爲什麼。謝謝! – HelloGoodbye