Results 1 to 4 of 4

Thread: Auto save and create new row in table view

  1. #1
    Join Date
    Aug 2010
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Auto save and create new row in table view

    I have created a maintenace screen using a tableview. The customer would like the view to automatically save the record and add a new line once they have populated the last field in the view. Is there a way to do this? Code examples would be appreciated. Thank you in advance.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Auto save and create new row in table view

    You need to write your custom model

  3. #3
    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: Auto save and create new row in table view

    You could simple use the signals provided by the view and check in the corresponding slot if the last row has been filled out and then just append a row.

  4. #4
    Join Date
    Aug 2010
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Auto save and create new row in table view

    What would the code look like to accomplish this?

Similar Threads

  1. Auto save on compile
    By JohnToddSr in forum Qt Tools
    Replies: 3
    Last Post: 28th February 2020, 18:51
  2. Replies: 1
    Last Post: 8th June 2011, 15:13
  3. how to create auto-hide window
    By gauravg in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2011, 09:20
  4. Replies: 5
    Last Post: 3rd April 2010, 05:07
  5. Table Widget Vs. Table View
    By winston2020 in forum Qt Programming
    Replies: 2
    Last Post: 19th October 2008, 10:56

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.