以下成員源於類 QHelpSearchEngine 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(棄用)
|
SearchHit |
(棄用)
int
|
hitCount () const |
(棄用)
QList<QHelpSearchEngine::SearchHit>
|
hits (int start , int end ) const |
(棄用)
int
|
hitsCount () const |
(棄用)
QList<QHelpSearchQuery>
|
query () const |
(棄用)
void
|
search (const QList<QHelpSearchQuery> & queryList ) |
[deprecated]
QHelpSearchEngine::
SearchHit
This typedef is deprecated. We strongly advise against using it in new code.
使用 QHelpSearchResult 代替。
typedef 對於 QPair < QString , QString >. The values of that pair are the documentation file path and the page title.
另請參閱 hits ().
[deprecated]
int
QHelpSearchEngine::
hitCount
() const
This function is deprecated. We strongly advise against using it in new code.
使用 searchResultCount () 代替。
[deprecated]
QList
<
QHelpSearchEngine::SearchHit
> QHelpSearchEngine::
hits
(
int
start
,
int
end
) const
This function is deprecated. We strongly advise against using it in new code.
使用 searchResults () 代替。
[deprecated]
int
QHelpSearchEngine::
hitsCount
() const
This function is deprecated. We strongly advise against using it in new code.
使用 searchResultCount () 代替。
[deprecated]
QList
<
QHelpSearchQuery
> QHelpSearchEngine::
query
() const
This function is deprecated. We strongly advise against using it in new code.
使用 searchInput () 代替。
[slot, deprecated]
void
QHelpSearchEngine::
search
(const
QList
<
QHelpSearchQuery
> &
queryList
)
This function is deprecated. We strongly advise against using it in new code.
Use search(const QString & searchInput ) 代替。
注意: 此槽被重載。要連接到此槽:
// Connect using qOverload: connect(helpSearchEngine, qOverload&>(&QHelpSearchEngine::search), receiver, &ReceiverClass::slot); // Or using a lambda: connect(helpSearchEngine, qOverload &>(&QHelpSearchEngine::search), this, [](const QList &queryList) { /* handle search */ });
更多範例和方式,見 連接到重載槽 .