Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 Python 与 PyQt 一起使用,我的QLineEdits.
QLineEdits
QLineEdit
差不多是这样的:
linedit = QtGui.QlineEdit() linedit.setPlaceholderText("My grey text which disappear when I click on it") linedit.setEnabled(False)
使用 Qt 最低版本 4.7 和最新的 PyQt 4。