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

Method query() is absent in QSqlTableModel and QSqlQueryModel

XMLWordPrintable

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

      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' 

        1. pyside2300.py
          0.3 kB
          Friedemann Kleint
        For Gerrit Dashboard: PYSIDE-2300
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes