title: Save the contents of a qtextedit to .txt file
body: <p>I have a question related to qtextedit. I have a GUI in which the Qtextedit widget gets populated once when i press a button (basically after running a process). Now i want to save the contents of the qtext edit widget to *.txt file.</p>
  
  <p>I referred the docs but i did'nt get any particular method like gettext() of a qlineedit.</p>
  
  <p>How to do this ? help me with this</p>
  
  <p><img src="https://i.stack.imgur.com/6Gz2M.jpg" alt="enter image description here"></p>