1 |
#include <QApplication> |
#include <QApplication> |
2 |
#include <QtWebKit> |
#include "MyWebView.h" |
3 |
|
|
|
class MyWebView : public QWebView |
|
|
{ |
|
|
public: |
|
|
MyWebView(QWidget* parent) : QWebView(parent) { |
|
|
this->setWindowState( Qt::WindowFullScreen ); |
|
|
} |
|
|
|
|
|
}; |
|
4 |
|
|
5 |
|
|
6 |
int main(int argc, char** argv) { |
int main(int argc, char** argv) { |
12 |
settings->setAttribute( QWebSettings::PluginsEnabled, true); |
settings->setAttribute( QWebSettings::PluginsEnabled, true); |
13 |
|
|
14 |
MyWebView web(0); |
MyWebView web(0); |
|
web.load(QUrl("http://10.210.210.200/infoscreens/screen.php?screen_id=1&height=480&width=640")); |
|
15 |
web.show(); |
web.show(); |
16 |
|
|
17 |
|
|