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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.8.0
    • SQL Support
    • None
    • 40206a9f6d7635bb19305d1c8d74908808e3529e

      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

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes