qlineedit Questions
4
I have a Qt widget which should only accept a hex string as input. It is very simple to restrict the input characters to [0-9A-Fa-f], but I would like to have it display with a delimiter between "b...
2
In QLineEdit, there is a textEdit() signal, which only emits if the user changes the text, but not when you call setText(),
So what's the equivalent in QTextEdit? I only see a textChanged() signal...
2
Solved
I need to connect the valueChanged signal from QLineEdit to a custom slot programatically. I know how to do the connection by using Qt Designer and doing the connection with graphical interface but...
Lanfranc asked 14/12, 2013 at 16:52
3
Solved
I'm trying to do a small widget with a lineedit and a pushbutton. If the button is clicked, it should open a filedialog where I can select a file. The file name should then showed in the lineedit. ...
4
Solved
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...
5
Solved
I am new to Qt/PySide. I want QLineEdit to select all text in it when it gets focus. After getting focus and selecting all text, it should select all text only after focus is lost and gained again....
3
Solved
How can I change the color and font of QLineEdit?
Here is my code:
self.lineEdit = QtGui.QLineEdit(widget)
self.lineEdit.setText("enter keywords here") #I want this to be in italics and in brown ...
7
Solved
When I set the placeholder text with QLineEdit::setPlaceholderText(), it appears gray.
Is there any way to change the color to something else, for example red?
6
Solved
I am working on QT v5.2
I need to hide the blinking cursor (caret) of QLineEdit permanently.
But at the same time, I want the QLineEdit to be editable (so readOnly and/or setting editable false is...
8
Solved
I have a set of QLineEdits that are supposed to accept double values within a certain range, (e.g., -15 to 15).
I have something along these lines when setting up each:
lineEdit->setValidator...
Pears asked 24/10, 2013 at 16:5
4
I have created a dialog using QtDesigner. There is a QLineEdit object in the dialog with some default content. When the dialog initializes and the focus goes to the QLineEdit, I want the default co...
Basion asked 8/8, 2010 at 11:44
5
I am trying to create a demonstration app to show how to change font colors.
I can do it in QLabel and QTextEdit
I have found no way to change the foreground text color for a QLineEdit.
The only...
7
Solved
1
Solved
I want to change the ClearButton icon of my QLineEdit at Python 3.8 and PyQt5 (5.15.0) on Windows 10 (1909, 64-bit), later on I want to run the code on Linux.
I've tried to apply the code found her...
Giza asked 8/7, 2020 at 15:17
5
Solved
I want a line edit which accepts an ip address. If I give input mask as:
ui->lineEdit->setInputMask("000.000.000.000");
It is accepting values greater than 255. If I give a validator then ...
6
Solved
I need help inserting a button inside in a QLineEdit that can call a function.
For example, like this google image:
Kasper asked 17/9, 2012 at 15:33
3
Solved
I've found a few similar questions on this but these appear to refer to cases where a message box is used in the slot handler. In my case I am a bit stuck as I am getting the editFinished signal tw...
Brassica asked 6/11, 2014 at 14:44
1
Solved
Can someone tell me what approach or what logic so the QPushbutton will be enable if all the fields are not empty. I'm making a simple form that you can only push the button if the fields are not e...
Smyth asked 11/3, 2019 at 21:24
6
Solved
I have a QLineEdit where the user should input only numbers.
So is there a numbers-only setting for QLineEdit?
1
Solved
I make a QWidget object in which there are some lineEdits and I intend to add some constraints to them, so I implement QDoubleValidator objects.
Following is the related part in my code.
self.line...
Crannog asked 18/2, 2019 at 5:51
1
Solved
I have a QTableWidget with 7 colums in a QDialog, where every row has information about files in a specific directory.
With some checkboxes, lineedits etc I want to have the possibility to show onl...
Farnsworth asked 8/1, 2018 at 6:43
2
Solved
I am working with a GUI based on PySide. I made a (one line) text box with QLineEdit and the input is just four characters long, a restriction I already successfully applied.
The problem is I have...
3
Solved
I have a QLineEdit that only allows numbers and I want to get the current value from it. I can't figure out how.
ui->lineEdit->setValidator(new QIntValidator(this));
1
Solved
I want to set a placeholder text in a QLineEdit. I am using the below code to do so:
QLineEdit *q = new QLineEdit;
q->setPlaceholderText("Enter number");
But on executing, the placeholder doe...
Evonevonne asked 9/8, 2017 at 17:21
2
I have a QLineEdit and i want to restrict QLineEdit to accept only integers. It should work like inputmask. But I dont want to use inputmask, because if user clicks on QLineEdit cursor will be at t...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.