The QWebEngineHistoryItem class represents one item in the history of a web engine page. 更多...
头: | #include <QWebEngineHistoryItem> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
QWebEngineHistoryItem (const QWebEngineHistoryItem & other ) | |
~QWebEngineHistoryItem () | |
QUrl | iconUrl () const |
bool | isValid () const |
QDateTime | lastVisited () const |
QUrl | originalUrl () const |
void | swap (QWebEngineHistoryItem & other ) |
QString | title () const |
QUrl | url () const |
QWebEngineHistoryItem & | operator= (const QWebEngineHistoryItem & other ) |
Each web engine history item represents an entry in the history stack of a web page, containing information about the page, its location, and the time when it was last visited.
另请参阅 QWebEngineHistory and QWebEnginePage::history ().
Constructs a history item from other . The new item and other will share their data, and modifying either this item or other will modify both instances.
[noexcept]
QWebEngineHistoryItem::
~QWebEngineHistoryItem
()
Destroys the history item.
Returns the URL of the icon associated with the history item.
另请参阅 url (), originalUrl (),和 title ().
Returns whether this is a valid history item.
Returns the date and time when the page associated with the item was last visited.
Returns the original URL associated with the history item.
另请参阅 url ().
[noexcept]
void
QWebEngineHistoryItem::
swap
(
QWebEngineHistoryItem
&
other
)
Swaps the history item with the other 项。
Returns the title of the page associated with the history item.
另请参阅 url () 和 lastVisited ().
Returns the URL associated with the history item.
另请参阅 originalUrl (), title (),和 lastVisited ().
赋值 other history item to this. This item and other will share their data, and modifying either this item or other will modify both instances.