2015年10月20日 星期二

Color of QTextEdit

Palett = QtGui.QPalette()
Palett.setColor(QtGui.QPalette.Base,  QtCore.Qt.black)
Palett.setColor(QtGui.QPalette.Text, QtCore.Qt.white)
self.setPalette(Palett)

QT use palett to set color of widget, and Base mean base color of widget
this is different with background

沒有留言:

張貼留言