Ah, nevermind, misreading of the docs. Thought it was also a static method.
-geordan
On 1/25/11 9:15 PM, Geordan Rosario wrote:
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