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);
- relates to
-
PYSIDE-1653 shiboken generates too many member functions
-
- Closed
-