Results 1 to 3 of 3

Thread: When I delete rows using removeRows the row become blank , the mode in OnManualSubmit

  1. #1
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Thumbs up When I delete rows using removeRows the row become blank , the mode in OnManualSubmit

    Hi All,

    I am using QSqlTableModel and set OnSubmit mode.

    I my functionality when i click on delete button I call removeRows but the rows contents become blank.

    According to My functionality in save button if we have all columns are blank of a row we shows an error like rows are empty.

    How could i support both of them , how could i avoid the row content become empty while removeRows are executed.

    In Linux version it's working fine the row content not become empty but in qtcreator i faced this problem .

    Could any one suggest on this situation ?

    Thanks

  2. #2
    Join Date
    Sep 2007
    Location
    Ankara TURKEY
    Posts
    32
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: When I delete rows using removeRows the row become blank , the mode in OnManualSu

    Have you tried to use void endRemoveRows() ?

  3. #3
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: When I delete rows using removeRows the row become blank , the mode in OnManualSu

    No, I am not tried this, how can i use endRemoveRows() ?

    Thanks


    Added after 22 minutes:


    QSqltableModel doesn't have endRemoveRows() ?

    How can i use this function ?

    Thanks
    Last edited by RameshNani; 28th July 2014 at 13:08.

Similar Threads

  1. QTableView showing blank rows
    By rawfool in forum Newbie
    Replies: 3
    Last Post: 8th May 2014, 01:17
  2. Qt AbstractItemModel removeRows and delete causing core
    By GoCutey in forum Qt Programming
    Replies: 3
    Last Post: 18th July 2013, 20:32
  3. customize QTableView to add blank rows
    By rosenth in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2010, 11:47
  4. Replies: 2
    Last Post: 25th January 2010, 20:56
  5. Replies: 2
    Last Post: 13th May 2009, 10:35

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.