0

I wrote a small program using the qt Designer, but now the PlaceholderText in the program can't be displayed for the first time. It can only be displayed after I type a text and then clear the text. This is why?

enter image description here

ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97
OlW
  • 142
  • 1
  • 4

1 Answers1

0

I said it wrong, it's a QPlainTextEdit, but it doesn't matter. I later regenerated a QPlainTextEdit in QT Designer. I compared their properties and found that it was the same, but in the end, I reset the plaintext. Note that it was reset but not cleared, then the placeholdertext is displayed. I thought that clearing plaintext would be all right, now I have solved it.

arsdever
  • 1,111
  • 1
  • 11
  • 32
OlW
  • 142
  • 1
  • 4
  • As I commented under the question, it is highly recommended to have a code snippet. Neither your question nor the answer makes sense because as a reader I couldn't understand what the question was and what the soultion is. – arsdever Nov 27 '19 at 17:26
  • [https://stackoverflow.com/questions/56966714/how-to-insert-and-clear-placeholder-in-qtextedit] helps you. – Haru Nov 28 '19 at 01:07