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

QAbstractItemView.update shadows QWidget.update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.11.0
    • 6.10.0
    • PySide
    • None
    • All
    • edf368141 (dev)

      The QWidget.update methods are shadowed by QAbstractItemView.update

      When calling update() on a QListWidget it raises a TypeError

      TypeError: QListWidget.update() takes exactly one argument (0 given) 
      from PySide6.QtWidgets
      import QApplication, QListWidget
      import sys
       
      def main():
          app = QApplication(sys.argv)
          list_widget = QListWidget()
          list_widget.addItems(["Item 1", "Item 2", "Item 3"])
          list_widget.show()
          list_widget.update()
          sys.exit(app.exec())
       
      if __name__ == "__main__":
          main()
      
      void QWidget::update();
      inline void QWidget::update(int x, int y, int w, int h);
      void QWidget::update(const QRect&);
      void QWidget::update(const QRegion&);
      void update(const QModelIndex &index);
      
      QAbstractItemView:
      using QAbstractScrollArea::update;
      void QAbstractItemView::update(const QModelIndex &index);
      

        1. pyside3219_log.txt
          3 kB
          Friedemann Kleint
        2. pyside3219_diag.diff
          3 kB
          Friedemann Kleint
        3. pyside3219.py
          0.6 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            gentlegiantjgc J C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes