Results 1 to 2 of 2

Thread: How to select and copy a QTableWidget column ?

  1. #1
    Join Date
    Jun 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default How to select and copy a QTableWidget column ?

    Hi,

    I have a program that process some data and I use a QTableWidget to contain the results . I would like to analyse these results on Microsoft Excel.
    Is there a simple way to select an entire column of a QTableWidget in order to paste it in Excel ?

    Thanks for your help !!

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    52
    Thanked 42 Times in 42 Posts

    Default Re: How to select and copy a QTableWidget column ?

    You can loop through column content and save it to the CSV file, format is "data,", and then simply import it in the excel. Also You can export it as XML data, AFAIK excel opens that data format, but CSV is far easiest and fastest solution.

Similar Threads

  1. Copy row(s) from QTableWidget
    By allensr in forum Qt Programming
    Replies: 10
    Last Post: 1st February 2017, 09:59
  2. QTextEdit column select ?
    By kib2 in forum Qt Programming
    Replies: 10
    Last Post: 30th June 2013, 15:20
  3. QTableWidget row select
    By nowire75 in forum Newbie
    Replies: 4
    Last Post: 23rd December 2007, 19:59
  4. Select columns from a QTableWidget
    By toglez in forum Qt Programming
    Replies: 10
    Last Post: 7th October 2007, 16:15
  5. Select None in QTableWidget
    By Rayven in forum Qt Programming
    Replies: 2
    Last Post: 9th June 2006, 15:10

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.