123456789101112131415161718192021222324252627282930313233 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QtGui/QMainWindow>
- #include <QGraphicsScene>
- #include "graphicshybridview.h"
- #include <QDebug>
- class QWebFrame;
- class QWebView;
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- MainWindow(QWidget *parent = 0);
- QWebFrame *webFrame() { return m_hybridView->page()->mainFrame(); }
-
- void resizeEvent(QResizeEvent *event);
-
- private:
- void resizeView();
- private:
- GraphicsHybridView *m_hybridView;
- QGraphicsScene m_scene;
- QGraphicsView m_view;
- };
- #endif // MAINWINDOW_H
|