Results 1 to 2 of 2

Thread: export contents tableView

  1. #1
    Join Date
    Nov 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default export contents tableView

    how can i export the contents of a tableView into pdf or .txt with Qt Creator 2.3

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: export contents tableView

    For a text file:
    1. Open file
    2. Read model index text
    3. Write text to file
    4. Repeat until all rows and columns processed.
    5. Close file

    For a PDF file you are manipulating a QPrinter set to output PDF rather than a file.

Similar Threads

  1. Replies: 2
    Last Post: 16th February 2011, 09:15
  2. how to export dll with gui?
    By cutie.monkey in forum Qt Programming
    Replies: 5
    Last Post: 14th November 2009, 02:19
  3. Export to ods format
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2009, 09:40
  4. Export GraphicsView contents as JPG
    By Terabyte in forum Qt Programming
    Replies: 3
    Last Post: 5th January 2009, 19:15
  5. Export SVG: Qwt Bug?
    By giusepped in forum Qwt
    Replies: 4
    Last Post: 19th December 2008, 10:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.