Mar-10-2017, 11:46 AM
Hi there,
Is there a way of aligning the text in a text edit widget so that it is centered? There is no way of doing this in the Designer, and I have tried:
Is there a way of aligning the text in a text edit widget so that it is centered? There is no way of doing this in the Designer, and I have tried:
self.textwidget.setAlignment(QtCore.Qt.AlignCenterlike it says in the docs, however it doesn't seem to work, as there is no error, but text is still left aligned. What is the correct syntax for this assuming importing done like this:
from PyQt4 import QtGui from PyQt4 import QtCoreThanks