qlineedit

Get the len of QLineEdit in PyQt5

Get the len of QLineEdit in PyQt5 Question: I am writing a project that comes and takes the file address(path) from the user. And when the user clicks on the next button, she enters the loading page. I encountered a problem here that when the user does not specify the address and path of the …

Total answers: 1

How to call function when space key is pressed inside the lineEdit

How to call function when space key is pressed inside the lineEdit Question: I want to call a function that checks words count in a lineEdit whenever I press space key inside the lineEdit. But how can I do that. After executing the python file press ‘Start Game’ to go to the lineEdit. Thanks! Here’s …

Total answers: 1

QTableWidget return current item but return previous value when clicked

QTableWidget return current item but return previous value when clicked Question: Im trying to write function: when click to one value in QtableWidget, this value will show up on lineEdit. But i have a problem: the return value is previous value and i must click one more time,lineEdit just returns the current value. Ex: two …

Total answers: 1

Uppercase input in QLineEdit python way

Uppercase input in QLineEdit python way Question: 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 …

Total answers: 4

PyQt4: combine textChanged and editingFinished for QLineEdit

PyQt4: combine textChanged and editingFinished for QLineEdit Question: Is there a way to combine textChanged and editingFinished for QLineEdit? The problem is that editingFinished is emitted even if I only move the cursor away from QLineEdit without any changes. Whereas I want to emit a signal only when any changes were performed after I finished …

Total answers: 2

How to get text in QlineEdit when QpushButton is pressed in a string?

How to get text in QlineEdit when QpushButton is pressed in a string? Question: I am trying to implement a function. My code is given below. I want to get the text in lineedit with objectname ‘host’ in a string say ‘shost’ when the user clicks the pushbutton with name ‘connect’. How can I do …

Total answers: 4