Home > Mobile >  The couple - QT application icon
The couple - QT application icon

Time:10-10

New to QT, I use the MAC pro, followed the quickstart wrote the first sample the HelloWorld application icon, only add the pro file
 ICON=ICON. Icns 


Then create a helloworld program, no Settings icon, but the runtime appeared like helloworld icon,
After I look at the help documentation, find the exe file, open the package content, respectively, to see the inside of the Info. The plist, following
The HelloWorld:


The helloworld:

O solve,

CodePudding user response:

To set up a file the app. Rc
IDI_ICON1 ICON DISCARDABLE "res/logo. Ico"

The above is the content, add the rc to pro file, compile it OK

CodePudding user response:

Before I tried, the rc file can only be used for Windows, MAC needs to set up the Info. The file,
And I set up the icon, but did not set the program icon have appeared in the icon,
  •  Tags:  
  • Qt
  • Related