D
D
Diolorca2022-04-18 07:28:28
PyQt
Diolorca, 2022-04-18 07:28:28

How to change color of LineEdit when entering text?

There is a certain form with a bunch of LineEdit (QT Designer). I'm writing a small python script that would pass text from lineadity.
I would like to make sure that all LineEdits are filled with color by default, or have a color stroke. And when text is entered in LineEdit, it would become plain white without any fills.
Like in the pictures below:
625ce8ac1a837603312223.png
625ce8b7af54e528708258.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Ananiev, 2022-04-18
@SaNNy32

https://stackoverflow.com/questions/27283435/qt-se...

O
Oleg Chekunov, 2022-04-23
@Fnali

by default it is impossible only in manual

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question