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

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

XMLWordPrintable

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

      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();  }

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes