mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
application file-icon and window-icon set on ms-windows
This commit is contained in:
committed by
Thomas Krijnen
parent
34f038530f
commit
b034b40b09
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user