#ifndef WEBPOPUPWINDOW_H
#define WEBPOPUPWINDOW_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QWebEngineProfile;
class QWebEngineView;
QT_END_NAMESPACE
class WebView;
class UrlLineEdit;
class WebPopupWindow : public QWidget
{
Q_OBJECT
public:
WebPopupWindow(QWebEngineProfile *profile);
QWebEngineView *view() const;
void setUrl(const QUrl &url);
private slots:
void handleGeometryChangeRequested(const QRect &newGeometry);
void handleIconChanged(const QIcon &icon);
private:
UrlLineEdit *m_addressBar;
WebView *m_view;
};
#endif // WEBPOPUPWINDOW_H
webpopupwindow.h
最新推荐文章于 2021-12-12 18:05:30 发布
本文介绍了一个名为WebPopupWindow的类的设计与实现细节,该类继承自QWidget,主要用于创建弹出窗口,并集成了QWebEngineView以显示网页内容。文章详细解释了如何通过QWebEngineProfile配置网络配置文件,并提供了设置URL、处理窗口几何变化请求及图标更改等功能的方法。
1万+

被折叠的 条评论
为什么被折叠?



