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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Component/s: Core: Item Models
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            dfaure_kdab David Faure
            Reporter:
            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