Sorry I used QLineEdit after your first reply. In my reply it was a typo.
And before you posted the code, I did the same way like yours. Now its looking the way I wanted.
Thank you very much.