Details
Description
The templated QObject::findChild takes two arguments, a name argument and an options argument. The PySide2 version only supports the name argument.
% python3 >>> from PySide2.QtCore import QObject >>> help(QObject.findChild) Help on method_descriptor: findChild(self, arg__1:type, arg__2:str='') -> object
The first argument is the template argument. The second argument should be "name", not "arg__2", and the third argument is missing.
Attachments
For Gerrit Dashboard: PYSIDE-905 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
311709,1 | QObject.findChild: Add names to arguments | 5.15 | pyside/pyside-setup | Status: ABANDONED | -1 | 0 |
354175,3 | PySide6: Add Qt::FindChildOptions to QObject::findChild(ren) | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
354288,2 | PySide6: Add Qt::FindChildOptions to QObject::findChild(ren) | 6.1 | pyside/pyside-setup | Status: MERGED | +2 | 0 |