def isValid(obj): """Returns True if underlying C++ object is valid. :param QObject obj: :rtype: bool """ return not _isdeleted(obj)