python-qt-tools / PyQt5-stubs

Stubs for PyQt5
GNU General Public License v3.0
68 stars 31 forks source link

QLineEdit Optional[QValidator] #209

Open polfeliu opened 1 year ago

polfeliu commented 1 year ago

QLineEdit.setValidator should accept None since, since the default value of QLineEdit.validator is None.

Also mentioned here https://doc.qt.io/qt-5/qlineedit.html#setValidator

"If v == 0, setValidator() removes the current input validator."

altendky commented 1 year ago

Fixing in https://github.com/python-qt-tools/PyQt5-stubs/pull/210. Thanks.