wip
This commit is contained in:
@@ -132,8 +132,22 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
QApplication a(argc, argv);
|
||||
|
||||
MainWindow w;
|
||||
setMainWindow(&w);
|
||||
QWidget window;
|
||||
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);
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user