Results 1 to 4 of 4

Thread: import data from exel to tableview

Hybrid View

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

    Default import data from exel to tableview

    can i import data from exel to tableview ????

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: import data from exel to tableview

    Yes you can.

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

    Default Re: import data from exel to tableview

    so who ???

  4. #4
    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: import data from exel to tableview

    However you want. There is no magic QImportFromArbitraryExcelSpreadsheet class in Qt. You have to code it yourself. Your options include:
    • Export the spreadsheet to CSV (or similar) and read that data in as a text file
    • Save the Excel spreadsheet in an XML format and use QDomDocument or QXmlStreamReader
    • Use ActiveQt to automate Excel and read the cell data of interest
    • Use ODBC to treat the Excel spreadsheet like a table

  5. The following user says thank you to ChrisW67 for this useful post:

    Jeffb (5th March 2012)

Similar Threads

  1. Replies: 12
    Last Post: 24th July 2010, 08:12
  2. Managing data in a TableView
    By scarleton in forum Qt Programming
    Replies: 6
    Last Post: 11th June 2010, 00:48
  3. Excel data import
    By MarkoSan in forum Qt Programming
    Replies: 3
    Last Post: 21st May 2010, 11:31
  4. getting data from tableView
    By mkarakaplan in forum Newbie
    Replies: 1
    Last Post: 7th November 2007, 09:51
  5. My derived TableView - how to get data mouse is over
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 17th May 2007, 09:09

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
  •  
Qt is a trademark of The Qt Company.