QWebEngineHistoryItem Class
QWebEngineHistoryItem 表示 Web 引擎页面历史记录中的 item. More...
头文件: | #include <QWebEngineHistoryItem> |
qmake: | QT += webenginewidgets |
开始支持版本: | Qt 5.4 |
公有函数
QWebEngineHistoryItem(const QWebEngineHistoryItem &other) | |
QWebEngineHistoryItem & | operator=(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 |
详细描述
每个 Web 引擎历史记录项都代表一个网页历史记录堆栈中的一个条目, 其中包含有关该页面, 其位置以及上次访问时间的信息.
See also QWebEngineHistory and QWebEnginePage::history().
Member Function Documentation
QWebEngineHistoryItem::QWebEngineHistoryItem(const QWebEngineHistoryItem &other)
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.
QWebEngineHistoryItem &QWebEngineHistoryItem::operator=(const QWebEngineHistoryItem &other)
Assigns the other history item to this. This item and other will share their data, and modifying either this item or other will modify both instances.
QWebEngineHistoryItem::~QWebEngineHistoryItem()
Destroys the history item.
QUrl QWebEngineHistoryItem::iconUrl() const
Returns the URL of the icon associated with the history item.
See also url(), originalUrl(), and title().
bool QWebEngineHistoryItem::isValid() const
Returns whether this is a valid history item.
QDateTime QWebEngineHistoryItem::lastVisited() const
Returns the date and time when the page associated with the item was last visited.
QUrl QWebEngineHistoryItem::originalUrl() const
Returns the original URL associated with the history item.
See also url().
void QWebEngineHistoryItem::swap(QWebEngineHistoryItem &other)
Swaps the history item with the other item.
QString QWebEngineHistoryItem::title() const
Returns the title of the page associated with the history item.
See also url() and lastVisited().
QUrl QWebEngineHistoryItem::url() const
Returns the URL associated with the history item.
See also originalUrl(), title(), and lastVisited().