Obsolete Members for QHelpSearchEngine

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

パブリック型

(deprecated) SearchHit

パブリック関数

(deprecated) int hitCount() const
(deprecated) QList<QHelpSearchEngine::SearchHit> hits(int start, int end) const
(deprecated) int hitsCount() const
(deprecated) QList<QHelpSearchQuery> query() const

パブリック・スロット

(deprecated) void search(const QList<QHelpSearchQuery> &queryList)

メンバーの型に関するドキュメント

[deprecated] QHelpSearchEngine::SearchHit

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

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

QPair<QString,QString> の typedef です。このペアの値は、ドキュメントファイルのパスとページタイトルです。

hits()も参照してください 。

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

[deprecated] int QHelpSearchEngine::hitCount() const

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

代わりに `searchResultCount()` を使用してください。

[deprecated] QList<QHelpSearchEngine::SearchHit> QHelpSearchEngine::hits(int start, int end) const

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

代わりに `searchResults()` を使用してください。

[deprecated] int QHelpSearchEngine::hitsCount() const

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

代わりに `searchResultCount()` を使用してください。

[deprecated] QList<QHelpSearchQuery> QHelpSearchEngine::query() const

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

代わりに `searchInput()` を使用してください。

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

代わりに search(constQString &searchInput) を使用してください。

注:この スロットは オーバーロードされています。このスロットに接続するには:

// Connect using qOverload:
connect(sender, &SenderClass::signal,
        helpSearchEngine, qOverload &>(&QHelpSearchEngine::search));

// Or using a lambda as wrapper:
connect(sender, &SenderClass::signal,
        helpSearchEngine, [receiver = helpSearchEngine](const QList &queryList) { receiver->search(queryList); });
その他の例や手法については、「オーバーロードされたスロットへの接続」を参照してください。

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