Add template display on QTextEdit