application file-icon and window-icon set on ms-windows

This commit is contained in:
Dushyant Basson
2023-09-02 02:29:52 +05:30
committed by Thomas Krijnen
parent 34f038530f
commit b034b40b09
7 changed files with 61 additions and 4 deletions
+5 -2
View File
@@ -6,11 +6,14 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QIcon appIcon(":/resources/ifcopenshell_logo.png");
// Set the icon in the window title-bar
// "icon" alias defined in .qrc file
// (.rc file sets the file icon on mswindows)
QIcon appIcon(":/icon");
app.setWindowIcon(appIcon);
MainWindow window;
window.setWindowIcon(appIcon);
window.show();
return app.exec();