Hello,

I need to set an icon for my application
But...

I don't really know how to use the rc file, and I don't want to use it. If I understood weel, it is plateform dependant.

So there is the qrc file, that seems not to be plateform dependant.
The matter is that :
- I don't know how to use it too
- It seems to load the ressources in memory at the launch of the application. I can't allow that for my application, that need to use as less memory as possible

Is there another solution ?
What I would like is to say, for example :
Qt Code:
  1. QApplication app(argc, argv);
  2. app.setIcon("my_icon.xpm");
To copy to clipboard, switch view to plain text mode