Results 1 to 7 of 7

Thread: how coult this happen with the QTableView Column insert?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Location
    China
    Posts
    66
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default how coult this happen with the QTableView Column insert?

    i have a slot function on insert a column with the qtableview,and the colde are bleow,i use the libqxt csvmodel function;:
    Qt Code:
    1. void PFDataGrid::insertColumn(int columnNumber)
    2. {
    3. QxtCsvModel *csvModel=(QxtCsvModel*)(this->model());
    4.  
    5. csvModel->insertColumn(columnNumber);
    6.  
    7.  
    8.  
    9. }
    To copy to clipboard, switch view to plain text mode 

    but when i insert a column ,there is always will insert a column at the end ,can't be edit ,and the first column did't have column number ,can anyone help my ,i will be appreciate it未命名.JPG
    Last edited by wysota; 13th December 2010 at 08:39. Reason: changed [qtclass] to [code]

Similar Threads

  1. Qtableview, insert and selection
    By noValue in forum Qt Programming
    Replies: 7
    Last Post: 4th May 2010, 00:06
  2. Insert into array column
    By wirasto in forum Newbie
    Replies: 3
    Last Post: 9th November 2009, 15:07
  3. Insert data to QTableView
    By Lodhart in forum Qt Programming
    Replies: 1
    Last Post: 23rd April 2009, 09:38
  4. Select row in QTableView after insert.
    By fede in forum Newbie
    Replies: 1
    Last Post: 14th April 2009, 15:18
  5. Insert QCheckBox into QTableView
    By wind in forum Qt Programming
    Replies: 3
    Last Post: 8th October 2006, 16:15

Tags for this Thread

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.