If you want to input text in an rectengular textbox, you might want to look into QTextEdit.

Good luck!