Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86602

buggy behavior of : bool QAbstractItemModel::removeRow(int row, const QModelIndex &parent = QModelIndex())

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.14.2
    • Core: Item Models
    • None
    • Linux/Wayland, Linux/X11

    Description

      when i ovveride the data function in my QSQLtableModel in two way the executtion of the removeRow return true but in one way affected in database and in other way not working properly(againt return true but not change in database).

      1 - 

      switch(role)

      { case Qt::DisplayRole: return QSqlTableModel::data(idx,role); default:break; }

       

      2 - 

      switch(role)

      { case Qt::DisplayRole: return QSqlTableModel::data(idx,role); default: return QVariant();  }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dfaure_kdab David Faure
            ssh1375 abas ghasemi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes