Results 1 to 12 of 12

Thread: TableView ProxyModel problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2008
    Posts
    491
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    12
    Thanked 142 Times in 135 Posts

    Default Re: TableView ProxyModel problem

    What confused me was this in updateTimeStats():
    Qt Code:
    1. if (ui->printView->isRowHidden(r)) //Test if user deleted row
    To copy to clipboard, switch view to plain text mode 
    While in createTimerTable() you have:
    Qt Code:
    1. ui->tableView->setModel(proxy);
    To copy to clipboard, switch view to plain text mode 

    Edit: Attached is a simple app based on one of your earlier (April, I think) posts that demonstrates that what you are trying to do should work.
    Attached Files Attached Files
    Last edited by norobro; 17th August 2011 at 03:09.

Similar Threads

  1. Custom ProxyModel or Two Sync'd Models ?
    By SSurgnier in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2011, 19:44
  2. Dragging out of a QTreeView with a ProxyModel
    By jmichiel in forum Newbie
    Replies: 4
    Last Post: 19th June 2011, 20:04
  3. ProxyModel problem
    By waynew in forum Qt Programming
    Replies: 1
    Last Post: 14th February 2010, 07:40
  4. Replies: 2
    Last Post: 6th January 2009, 21:55
  5. tableView Problem
    By hrcariaga in forum Newbie
    Replies: 5
    Last Post: 7th February 2008, 09:29

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.