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

QSqlRelationalTableModel provides incorrect display data after editing a foreign cell

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.5.1
    • SQL Support
    • None
    • Windows 7 64-bit.

      I've created a simplest application. It displays some persons in a table view. It reads them from sqlite database together with their location information (cities). Editing can be done using QSqlRelationalDelegate class.

      After editing a foreign cell (a city of some person) I observe a value of a foreign key ("3") instead of a city's name ("USA").

      I've attached screenshots and a test source code in archive to this ticket.

        1. after.png
          18 kB
          Vyacheslav Grigoryev
        2. bug-sample.7z
          64 kB
          Vyacheslav Grigoryev
        3. editing.png
          19 kB
          Vyacheslav Grigoryev
        4. initial.png
          23 kB
          Vyacheslav Grigoryev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mabrand Mark Brand
            SG House Vyacheslav Grigoryev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes