wip
This commit is contained in:
@@ -132,8 +132,22 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
|
|
||||||
MainWindow w;
|
QWidget window;
|
||||||
setMainWindow(&w);
|
window.setWindowTitle("Webview");
|
||||||
|
window.setStyleSheet("background-color: black;");
|
||||||
|
|
||||||
|
QVBoxLayout *layout = new QVBoxLayout(&window);
|
||||||
|
// layout->setSpacing(0);
|
||||||
|
// layout->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
|
// QString url = args.first();
|
||||||
|
QWebEngineView *web_view = new QWebEngineView();
|
||||||
|
web_view->load(QUrl(argv[1]));
|
||||||
|
layout->addWidget(web_view);
|
||||||
|
|
||||||
|
// window.showFullScreen();
|
||||||
|
window.show();
|
||||||
|
|
||||||
// a.installEventFilter(&w);
|
// a.installEventFilter(&w);
|
||||||
return a.exec();
|
return a.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user