How to write text file using lineedit in qtdisiger?

How to write text file using lineedit in qtdisiger?