The specification of the options 'top' and 'bottom' seems to have a strange behavior. The following answered question gave some useful insights, but d ...
The specification of the options 'top' and 'bottom' seems to have a strange behavior. The following answered question gave some useful insights, but d ...
I would like to use QLineEdit to get user input for values. I want to limit the input between a range so I should use QDoubleValidator. I would like i ...
I want to create a program that validate user input. I have found a Regex that validates if the input is correct or not. The problem is that the progr ...
I am trying to build a lineEdit that checks for non-ascii characters. I tested the RegEx using regex101 and it worked as expected.[:ascii:] seems to b ...
My QRegExpValidator always thinks my input is Acceptable - which it should not be. In the gui.py there is a QLineEdit object named ` Output is alwa ...
I have tried following regexp in cpp ^((T[X-Z]|R[X-Z])+?)(?:,\\s*|$). It validates only TX. If empty string it should be invalid, it should not accept ...
I want to use both InputMask and Validator to get date in the correct form. In the code below I am using InputMask to receive date in format DD.MM.YYY ...
Hi need help about why is not working think is conceptual but I cannot grasp it. I have some files: main.py : inputgui.py : checkstate.py : ...
I am trying to use QValidator descendants (actually in PyQt5, but that shouldn't matter) to validate a series of line-edits. A small excerpt is: cla ...
I am trying to pass a list of widgets into ca ontextmanager in which I am trying to set them with QDoubleValidators. My initial code is something as ...
I have a QT QRegExpValidator (RegExpValidator in QML) which restricts my text input to alphanumeric content only. However, when users paste strings i ...
I have a QIntValidator(int min, int max, QWidget* parent) set-up, but it returns QValidator::Intermediate with inputs that are between min and max (i. ...
I have used the setValidator(QIntValidator) in PyQt. How to reset this Validator to accept all the inputs like it was before ? I want to dynamically h ...
In one of my projects I have a series of QLineEdit Widgets, that should accept double numbers, that are lying in a certain range. For certain reasons ...
The question is pretty straightforward and in the title. Googling didn't help on this one. How do I get the QFileDialog to use a QValidator on its sa ...
QLineEdit has a signal QLineEdit::editingFinished that gets emitted when the user finished editing, for example by pressing enter. However if a valida ...
I'm using QLineEdit in my application. I want to prevent the user from entering '*' anywhere in the text. I tried to QRegExpValidator but could not ab ...
Following is my code to validate an account code, and add dashes at certain intervals. An example account code is 140-100-1000-6610-543. The code take ...
I want the QLineEdit to accept only numbers without any decimal.e.g it should accept '456' but not '456.3434'.i.e. it should not allow decimal at all. ...
I'm using a QDoubleValidator for my QLineEdit. The application locale (set in QtCreator) is QLocale::German. Now when I enter a valid double (either ...