K
K
kokapuk2021-02-14 01:42:06
PyQt
kokapuk, 2021-02-14 01:42:06

How can I make a test on the background of a QLineEdit?

I wanted to know how to do this:
602855756d48b308342574.png
I took this from the discord, such an inscription is in this line only when nothing is written in lineEdit, this text cannot be copied, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-02-14
@kokapuk

QLineEdit *q = new QLineEdit(this);
q->setPlaceholderText("Enter number");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question