Obsolete Members for QDBusConnectionInterface

QDBusConnectionInterface クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。

シグナル

(deprecated) void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner)

メンバ関数のドキュメント

[signal, deprecated] void QDBusConnectionInterface::serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner)

この関数は非推奨です。新しいコードでの使用は強く推奨しません。

代わりに `QDBusServiceWatcher ` を使用してください。

このシグナルは、バスのサービス所有権に変更が生じた際(名前の出現および消失を含む)に、D-Bus サーバーによって発信されます。

このシグナルは、アプリケーションoldOwner が、バス名name の所有権をアプリケーションnewOwner に譲渡したことを意味します。oldOwner が空の文字列である場合、名前name が作成されたばかりであることを意味します。newOwner が空の場合、名前name には現在の所有者がおらず、利用できなくなっています。

注: このシグナルに接続すると 、アプリケーションはバス上のすべてのサービス所有権の変更をリッスンして受信するようになります。実行中のサービスの数によっては、これによりアプリケーションが必要以上のシグナルを受信するためにアクティブ化されてしまう可能性があります。この問題を回避するには、特定の変更のみをリッスンできるQDBusServiceWatcher クラスを使用してください。

© 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.