1
如何在python中將背景圖片設置爲QTextEdit窗口?將背景圖片設置爲QTextEdit
到目前爲止,我的課是這樣的:
class MoveText(QtGui.QTextEdit):
def __init__(self, example_text):
super(MoveText, self).__init__()
self.setText(example_text)
self.initUI()
def initUI(self):
self.setGeometry(400, 300, 400, 400)
self.setWindowTitle('MoveText')
self.setFocusPolicy(QtCore.Qt.StrongFocus)
self.show()
...
我可以設置通過(WWW)網址的圖片?