Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. print ?
Qt 6.11 is out! See what's new in the release blog

print ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 386 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.
  • D Offline
    D Offline
    Duy Khang
    wrote on last edited by
    #1

    how can i print content of a table view ( i use QSqlTableModel) ?

    JonBJ 1 Reply Last reply
    0
    • D Duy Khang

      how can i print content of a table view ( i use QSqlTableModel) ?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @Duy-Khang
      This has been asked many times, including in this forum, and there are many possibly solutions depending on just what you want to print from the table. Googling for print qtableview would be a good start....

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        https://forum.qt.io/topic/91015/export-qtableview-to-pdf

        Using QTextDocument is most likely what you want.
        If you need multiple pages etc.

        for a very basic version, see here
        https://forum.qt.io/topic/52652/solved-pdf-print-in-multiple-pages/21
        Its using HTML.+QTextDocument to print it. ( from db)

        1 Reply Last reply
        1

        • Login

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