Hi,

I notice that QThreadPool.maxThreadCount() requires an argument:

>>> from PySide.QtCore import *
>>> QThreadPool.maxThreadCount()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: descriptor 'maxThreadCount' of 'PySide.QtCore.QThreadPool' object needs an argument
>>> QThreadPool.maxThreadCount(QThreadPool.globalInstance())
4

Is there a reason that it requires the global thread pool instance passed in? The docs don't reflect this; it seems to me that it shouldn't require any arguments.

Thanks,
-geordan
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to