mainwindow.h 598 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QtGui/QMainWindow>
  4. #include <QGraphicsScene>
  5. #include "graphicshybridview.h"
  6. #include <QDebug>
  7. class QWebFrame;
  8. class QWebView;
  9. class MainWindow : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. MainWindow(QWidget *parent = 0);
  14. QWebFrame *webFrame() { return m_hybridView->page()->mainFrame(); }
  15. void resizeEvent(QResizeEvent *event);
  16. private:
  17. void resizeView();
  18. private:
  19. GraphicsHybridView *m_hybridView;
  20. QGraphicsScene m_scene;
  21. QGraphicsView m_view;
  22. };
  23. #endif // MAINWINDOW_H