Typica is a free program for professional coffee roasters. https://typica.us
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

webview.h 821B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*540:*/
  2. #line 14 "./webview.w"
  3. #include <QWebView>
  4. #include <QFile>
  5. #include <QMessageBox>
  6. #include <QDesktopServices>
  7. #include <QPrinter>
  8. #include <QPrintDialog>
  9. #include <QWebFrame>
  10. #include <QWebElement>
  11. #include <QSettings>
  12. #ifndef TypicaWebViewHeader
  13. #define TypicaWebViewHeader
  14. class TypicaWebView:public QWebView
  15. {
  16. Q_OBJECT
  17. public:
  18. TypicaWebView();
  19. Q_INVOKABLE void load(const QString&url);
  20. Q_INVOKABLE void print();
  21. Q_INVOKABLE void setHtml(const QString&html,const QUrl&baseUrl= QUrl());
  22. Q_INVOKABLE void setContent(QIODevice*device);
  23. Q_INVOKABLE QString saveXml();
  24. Q_INVOKABLE QWebElement documentElement();
  25. Q_INVOKABLE QWebElement findFirstElement(const QString&selector);
  26. signals:
  27. void scriptLinkClicked(const QString&link);
  28. private slots:
  29. void linkDelegate(const QUrl&url);
  30. };
  31. #endif
  32. /*:540*/