wip
This commit is contained in:
@@ -33,7 +33,6 @@ int main(int argc, char *argv[]) {
|
||||
QWidget window;
|
||||
window.setWindowTitle("Webview");
|
||||
window.setStyleSheet("background-color: black;");
|
||||
window.showFullScreen();
|
||||
|
||||
// auto windowHandle = window.windowHandle();
|
||||
// if (!windowHandle) {
|
||||
@@ -54,13 +53,16 @@ int main(int argc, char *argv[]) {
|
||||
// window.setFixedSize(2160, 1080);
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(&window);
|
||||
layout->setSpacing(0);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
// layout->setSpacing(0);
|
||||
// layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
// QString url = args.first();
|
||||
QWebEngineView *web_view = new QWebEngineView();
|
||||
web_view->load(QUrl(argv[1])));
|
||||
web_view->load(QUrl(argv[1]));
|
||||
layout->addWidget(web_view);
|
||||
|
||||
// window.showFullScreen();
|
||||
window.show()
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user