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

CLONE - QSqlQueryModel does not report the roleNames for the fields making useless on QML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Won't Do
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Component/s: SQL Support
    • Labels:
      None
    • Commits:
      40206a9f6d7635bb19305d1c8d74908808e3529e

      Description

      If you query the QSqlQueryModel::rolesNames() it returns a list with display role only.

      I thing this useless for QML, I guess the role names need be dynamic using the fields on the record returned like done here: 

      https://wiki.qt.io/How_to_Use_a_QSqlQueryModel_in_QML

       

        Attachments

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

          Activity

            People

            Assignee:
            andysh Andy Shaw
            Reporter:
            israelins85 Israel Lins Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes