aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-07 23:41:37 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-07 23:41:37 +0530
commit4ce5d59c41d4217f02e6f84c6e531fbc4ee20122 (patch)
tree6821ee74a348c65724bd83ee8fecf7fb43e295b7 /src/main.cpp
parentd7b0739cca80d0af95367e801972d10e3ea859db (diff)
downloadnull-browser-4ce5d59c41d4217f02e6f84c6e531fbc4ee20122.tar.gz
null-browser-4ce5d59c41d4217f02e6f84c6e531fbc4ee20122.zip
Simple qtwebengine view
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 275bed6..03bc7c2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6,12 +6,12 @@
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QWidget mainWindow;
- mainWindow.setWindowTitle("Qt6 WebEngine");
+ mainWindow.setWindowTitle("web-browser");
- QVBoxLayout *layout = new QVBoxLayout(&mainWindow);
- QWebEngineView *view = new QWebEngineView();
+ auto layout = new QVBoxLayout(&mainWindow);
+ auto view = new QWebEngineView();
view->setFixedSize(400, 400);
- view->setUrl(QUrl("https://www.qt.io"));
+ view->setUrl(QUrl("https://ediblemonad.dev"));
layout->addWidget(view);
mainWindow.show();