add application file icon for macos

This commit is contained in:
dushyant basson
2023-09-02 03:38:28 +05:30
parent 7bd08468d6
commit 22b953aba8
34 changed files with 16 additions and 2 deletions
+5 -2
View File
@@ -6,11 +6,14 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
// Set the icon in the window title-bar
// Set the icon in the window title-bar on mswindows
// and dock icon on macos.
// "icon" alias defined in .qrc file
// (.rc file sets the file icon on mswindows)
QIcon appIcon(":/icon");
app.setWindowIcon(appIcon);
// File icon set with:
// mswindows - .rc file
// macos - .icns file (using CMake)
MainWindow window;