PyQt_QLineEdit_textChanged

文章目录

  • dialog_new.py
  • main.py

  如果lineEdit的内容被修改,则会发送textChanged信号。

dialog_new.py

  dialog_new.py如下:

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(400, 300)
        self.lineEdit = QtWidgets.QLineEdit(Dialog)
        se

你可能感兴趣的:(pyqt,python,开发语言)