Advertisement
Guest User

WebContainerH

a guest
Mar 20th, 2013
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef WEBCONTAINER_H
  2. #define WEBCONTAINER_H
  3.  
  4. #include <QtWebKitWidgets/QWebView>
  5. #include <QtWebKitWidgets/QWebFrame>
  6. #include <QtWebKitWidgets/QWebPage>
  7. #include <QtWebKit/QWebElement>
  8.  
  9. #include <QMouseEvent>
  10.  
  11. class WebContainer : public QWebView
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit WebContainer(QWidget *parent = 0);
  16.  
  17. private:
  18. QWebElement _currentElement;
  19. QWebPage* _webpage;
  20.  
  21. void fillContents();
  22.  
  23. bool _isDrag;
  24. int _startX;
  25. int _startY;
  26.  
  27. protected:
  28. void mousePressEvent(QMouseEvent *e);
  29. void mouseMoveEvent(QMouseEvent *e);
  30. void mouseReleaseEvent(QMouseEvent *e);
  31.  
  32. signals:
  33.  
  34. public slots:
  35.  
  36. };
  37.  
  38. #endif // WEBCONTAINER_H
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement