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

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.8.0
    • SQL Support
    • None
    • 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

            andysh Andy Shaw
            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