Obsolete Members for QDBusConnection
类QDBusConnection 的以下成员已被弃用。提供这些成员是为了保持旧源代码的正常运行。我们强烈建议不要在新代码中使用它们。
公共函数
(deprecated) bool | callWithCallback(const QDBusMessage &message, QObject *receiver, const char *returnMethod, int timeout = -1) const |
成员函数文档
[deprecated]
bool QDBusConnection::callWithCallback(const QDBusMessage &message, QObject *receiver, const char *returnMethod, int timeout = -1) const
该函数已被弃用。我们强烈建议不要在新代码中使用它。
这是一个重载函数。
通过此连接发送message 并立即返回。收到回复后,在receiver 对象中调用returnMethod 方法。
该函数仅适用于方法调用。只要参数类型匹配且不出错,就能保证槽与回复一起被准确调用一次。
该函数是危险的,因为它不能报告错误,包括超时。
如果信息已发送,则返回true
;如果信息无法发送,则返回 false。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.