O
O
Oleg Andreev2021-04-07 09:27:50
Python
Oleg Andreev, 2021-04-07 09:27:50

How to insert a line in QLineEdit?

People, tell me please, is there a method in QT with which you can enter a line in QLineEdit? I need to edit the data entered into the database. I get them from the database, then I need to somehow put them into PyQt5 strings. For example, there is a setStyleSheet, it colors the QLineEdit, I need it not to color it, but to write some value into the line.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jerwright, 2021-04-07
@RolingHome

Use setText()
Example:
ui.keys.setText("Текст")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question