PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 685 - The second arg. of QObject.findChildren doesn't have a default value and doesn't support regexes.
: The second arg. of QObject.findChildren doesn't have a default value and does...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: All All
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-02-12 15:43 EET by Dan Clementi
Modified: 2011-04-01 23:16 EEST (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Clementi 2011-02-12 15:43:10 EET
In PyQt4, the below example will return all widgets of the desired type:    
  all_checkboxes = self.ui.tabWidget.findChildren(QCheckBox)
If I do the same in PySide, an error is thrown that two arguments are expected. 

So, if I explicitly enter a string there, for example:
  all_checkboxes = self.ui.tabWidget.findChildren(QCheckBox,"checkBox_1")
the specified checkbox will be returned.  

But, I am not seeing any way to return either:
a) all children of that widget type or
b) some children of that widget type with a wildcard, as the PySide version
won't accept a QRegExp as the second argument.
Comment 1 Lewis 2011-03-01 10:02:23 EET
Adding myself to the CC list.
Comment 2 Hugo Parente Lima 2011-03-23 18:48:53 EET
Fixed in commit:

pyside/6f8f72824181d469b0b855790a29ce56ce38e995
Comment 3 Hugo Parente Lima 2011-04-01 23:16:02 EEST
Closing bug after release of PySide 1.0.1.