QPlaceholderTextEdit is a Qt  QTextEdit widget can set placeholder text, you can use and edit the code free completely