20 #ifndef QGraphicsWebView_h
21 #define QGraphicsWebView_h
32 #if !defined(QT_NO_GRAPHICSVIEW)
38 class QGraphicsWebViewPrivate;
45 Q_PROPERTY(qreal zoomFactor READ zoomFactor WRITE setZoomFactor)
50 Q_PROPERTY(
bool resizesToContents READ resizesToContents WRITE setResizesToContents)
51 Q_PROPERTY(
bool tiledBackingStoreFrozen READ isTiledBackingStoreFrozen WRITE setTiledBackingStoreFrozen)
64 void setUrl(const
QUrl&);
69 qreal zoomFactor() const;
70 void setZoomFactor(qreal);
72 bool isModified() const;
74 void load(const QUrl& url);
77 void setHtml(const
QString& html, const QUrl& baseUrl = QUrl());
79 void setContent(const QByteArray&
data, const
QString& mimeType =
QString(), const QUrl& baseUrl = QUrl());
84 QAction* pageAction(QWebPage::WebAction action) const;
85 void triggerPageAction(QWebPage::WebAction action,
bool checked = false);
87 bool findText(const QString& subString, QWebPage::FindFlags options = 0);
89 bool resizesToContents() const;
90 void setResizesToContents(
bool enabled);
92 bool isTiledBackingStoreFrozen() const;
93 void setTiledBackingStoreFrozen(
bool frozen);
95 virtual
void setGeometry(const
QRectF& rect);
96 virtual
void updateGeometry();
99 virtual
bool event(
QEvent*);
105 QPainter::RenderHints renderHints() const;
106 void setRenderHints(QPainter::RenderHints);
107 void setRenderHint(QPainter::RenderHint,
bool enabled = true);
117 void loadFinished(
bool);
119 void loadProgress(
int progress);
120 void urlChanged(const QUrl&);
121 void titleChanged(const QString&);
123 void statusBarMessage(const QString& message);
124 void linkClicked(const QUrl&);
128 virtual
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent*);
129 virtual
void mouseReleaseEvent(QGraphicsSceneMouseEvent*);
130 virtual
void mouseMoveEvent(QGraphicsSceneMouseEvent*);
132 virtual
void hoverLeaveEvent(QGraphicsSceneHoverEvent*);
133 #ifndef QT_NO_WHEELEVENT
138 #ifndef QT_NO_CONTEXTMENU
161 QGraphicsWebViewPrivate* const d;
162 friend class QGraphicsWebViewPrivate;
165 #endif // QT_NO_GRAPHICSVIEW
167 #endif // QGraphicsWebView_h
virtual void dragMoveEvent(QGraphicsSceneDragDropEvent *event)
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
#define Q_PRIVATE_SLOT(d, signature)
virtual void dragEnterEvent(QGraphicsSceneDragDropEvent *event)
virtual void keyPressEvent(QKeyEvent *event)
GLsizei GLsizei GLenum GLenum const GLvoid * data
virtual void keyReleaseEvent(QKeyEvent *event)
GLsizei const GLfloat * value
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
virtual void wheelEvent(QGraphicsSceneWheelEvent *event)
virtual void dropEvent(QGraphicsSceneDragDropEvent *event)
virtual void inputMethodEvent(QInputMethodEvent *event)