Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2300

Method query() is absent in QSqlTableModel and QSqlQueryModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.1, 6.6.0
    • 6.5.0
    • PySide
    • None
    • c350fc960 (dev), 53d038096 (6.5)

    Description

      It appears that PySide 6.5.0 lacks query() method:

      >>> from PySide6.QtSql import QSqlTableModel, QSqlQueryModel   
      >>> a = QSqlTableModel()
      
      >>> a.query()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      AttributeError: 'PySide6.QtSql.QSqlTableModel' object has no attribute 'query'
      
      >>> b = QSqlQueryModel()
      >>> b.query()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      AttributeError: 'PySide6.QtSql.QSqlQueryModel' object has no attribute 'query' 

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-2300
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              starterkit Ivan Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes