Database Export in QT GUI Application.



  • Hi,

    I have created QT-GUI application, want to export a data which is present in database in Excel file or SVG file Format.
    Can you please suggest the best way of doing this.
    Is there any function available in QT for this.



  • I think the easiest what to reach this, it's to save you QTableView representation in csv format



  • On Windows you can automate Excel using ActiveQt, use QODBC and the Microsoft Excel ODBC driver, or write a CSV or similar file to be imported by Excel.

    To write an SVG file you can use QXmlStreamWriter.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.