QWebEngineScriptCollection Class

QWebEngineScriptCollection 클래스는 사용자 스크립트 컬렉션을 나타냅니다. 더 보기...

헤더: #include <QWebEngineScriptCollection>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore

공용 함수

~QWebEngineScriptCollection()
void clear()
bool contains(const QWebEngineScript &value) const
int count() const
QList<QWebEngineScript> find(const QString &name) const
void insert(const QList<QWebEngineScript> &list)
void insert(const QWebEngineScript &s)
bool isEmpty() const
bool remove(const QWebEngineScript &script)
QList<QWebEngineScript> toList() const

상세 설명

QWebEngineScriptCollection은 사용자 스크립트 집합을 관리합니다.

QWebEnginePage::scripts() 및 QWebEngineProfile::scripts()를 사용하여 단일 페이지 또는 동일한 프로필을 공유하는 여러 페이지와 관련된 스크립트 모음에 액세스할 수 있습니다.

스크립트 주입도참조하세요 .

멤버 함수 문서

[noexcept] QWebEngineScriptCollection::~QWebEngineScriptCollection()

컬렉션을 삭제합니다.

void QWebEngineScriptCollection::clear()

이 컬렉션에서 모든 스크립트를 제거합니다.

bool QWebEngineScriptCollection::contains(const QWebEngineScript &value) const

컬렉션에 value 이 포함되어 있으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

int QWebEngineScriptCollection::count() const

컬렉션에 있는 요소의 수를 반환합니다.

QList<QWebEngineScript> QWebEngineScriptCollection::find(const QString &name) const

컬렉션의 이름이 name 인 스크립트 목록을 반환하거나, 찾을 수 없는 경우 빈 목록을 반환합니다.

void QWebEngineScriptCollection::insert(const QList<QWebEngineScript> &list)

목록 list 의 스크립트를 컬렉션에 삽입합니다.

void QWebEngineScriptCollection::insert(const QWebEngineScript &s)

s 스크립트를 컬렉션에 삽입합니다.

bool QWebEngineScriptCollection::isEmpty() const

컬렉션이 비어 있으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

bool QWebEngineScriptCollection::remove(const QWebEngineScript &script)

컬렉션에서 script 을 제거합니다.

스크립트가 발견되어 컬렉션에서 성공적으로 제거되면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

QList<QWebEngineScript> QWebEngineScriptCollection::toList() const

이 컬렉션에 사용된 스크립트 값이 포함된 목록을 반환합니다.

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