Uppercase input in QLineEdit python way
问题 I had drawn up an UI using the QT Designer but found out that there are no parameters for me to set QLineEdit inputs to be uppercase. After doing some online searching, I have only seen a very few handful of results that cater to my needs, however all are coded in Qt. Example, this link And so, are there ways for me to do this in the pythonic way? 回答1: Try this, I believe this serves your purpose. I won't call it much pythonic. More like PyQt override. #minor code edit from PyQt4 import QtGui