From 315c0b505c94e0a4cc14948ff47180576e4786ed Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 23 Apr 2013 09:53:51 -0700 Subject: Set the window icon in Qt And even use the resource file to allow me to use an alias for it in the actual code. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index bb4bda1af..adfb3c74a 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -26,6 +26,7 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow()), { ui->setupUi(this); ui->ListWidget->setModel(model); + this->setWindowIcon(QIcon(":subsurface-icon")); // Just to test the star widgets, can be safely removed. StarWidget *star = new StarWidget(0); star->setMaximumStars(10); -- cgit v1.2.3-70-g09d2