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。
这是一个重载函数。
© 2026 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.