Results 1 to 3 of 3

Thread: Adding a blank row to table on successful editing of the last cell of the last row

  1. #1
    Join Date
    Oct 2010
    Posts
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Adding a blank row to table on successful editing of the last cell of the last row

    Hi

    I have used QTableView and created a custom model by inheriting QAbstractTableModel.
    Now my requirement is when user edits the last cell of the last row...a new blank row must be added to the table.

    I am very new to the QT programming...It would be really helpful if you can give me steps in detail like what signal and slot i need to use, adding row and updating the model and ui etc etc

    Thanks in advance
    Naag

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Adding a blank row to table on successful editing of the last cell of the last ro

    You will need to add the row / item to the model , and then emit a signal from the model that it has changed.

  3. #3
    Join Date
    Oct 2010
    Posts
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Adding a blank row to table on successful editing of the last cell of the last ro

    could you please gimme steps to do that.

    Thanks in advance

    Regards
    Nagesh

Similar Threads

  1. QTreeView cell as table
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2009, 10:45
  2. Editing and adding entries to a QComboBox
    By bruccutler in forum Newbie
    Replies: 1
    Last Post: 29th May 2007, 18:13
  3. Table cell merge/join
    By larry104 in forum Qt Programming
    Replies: 6
    Last Post: 16th June 2006, 23:35
  4. Table model / view editing issue
    By Caius Aérobus in forum Qt Programming
    Replies: 9
    Last Post: 7th April 2006, 12:03
  5. Highlighting the border of cell in Table
    By ankurjain in forum Qt Programming
    Replies: 8
    Last Post: 21st March 2006, 09:20

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.