Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char *argv[])
- {
- QApplication a(argc, argv);
- const int width = 640;
- const int height = 480;
- QGraphicsScene scene;
- QGraphicsView view(&scene);
- view.setFrameShape(QFrame::NoFrame);
- view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
- view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
- QGraphicsWebView webview;
- webview.resize(width, height);
- webview.setAttribute(Qt::WA_AcceptTouchEvents);
- webview.load(QUrl("http://192.168.1.2/test2"));
- scene.addItem(&webview);
- view.resize(width, height);
- view.show();
- return a.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement