Turn qt application form into text file

  • Hi everyone, I need some advice: I created a qt application form with a series of fields to insert data (they are above all lineEdit and checkbox objects). Once the insertion is finished, I would like to create a text file, or a pdf or a docx file that contains all these fields including checked or unchecked checkboxes. How can I do?

  • @Safer
    There is nothing automatic in Qt to do this. You must visit each of your widgets and output whatever you want from them. You might look at QTextDocument (https://doc.qt.io/qt-5/qtextdocument.html) as the means to export.

Log in to reply