继承 QObject and QDeclarativePropertyValueSource .
parent argument, if not None, causes self to be owned by Qt instead of PyQt.