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

Usinh QSql(Relational)TableModel with QComboBox and deleted rows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.2
    • None
    • Gentoo Linux (stable), kernel 2.6.34, Qt 4.6.2

    Description

      Using an instance of QSqlTableModel as model for QComboBox. the edit stratregy of the model is set to QSqlTableModel::OnManualSubmit.

      Whenever a row is removed from the model without submitting the item is still displayed. This is as such not a problem, but it is not marked as deleted when displaying it.
      So there is no chance to the user to see that this item has been removed (but not submitted).

      Also a delegate can not detect this because there is no method in the model to ask whether the row in question have been marked as deleted. The same applies if you subclass the model.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            petric Petric Frank
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes