Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Database Export in QT GUI Application.
Qt 6.12 LTS is out! See what's new in the release blog

Database Export in QT GUI Application.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _compiler
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved