Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt can i set resources programatically?
in Qt c++ , is there any way to set resources programatically?
i want to let the user to set the exe icon and his html file that will be loaded into the application(QtWebKit).
so it will embedded in to the application that is currently are compiled using the resource Collection Files (.qrc)
and for the exe icon im using rc file.
You can change window icon on the fly with "setWindowIcon":http://doc-snapshot.qt-project.org/4.8/qwidget.html#windowIcon-prop . Setting exe icon is very tricky.
well im looking for away to let the user to configure the app look and feel
setWindowIcon , is ok but its be better somehow to make it embedded somehow to the app , not loaded in runtime.
im sure there is way to do the icon thing , how does windows let you to set icon to exe ?
Windows doesn't let you set icons for executables... Windows let you link icon with executable, or assign icon for a mime type. Icon is strictly compiled in binary file in TDATA section. You can edit it with programs like Restorator or you can do it by yourself programmatically, but it is really tricky...
is there some way ? to do this ? what is the tricky way you know ?
Updating Resources MSDN -> http://msdn.microsoft.com/en-us/library/ms648008(v=vs.85).aspx#_win32_Updating_Resources
P.S.: forum can't handle this link, so copy-paste it
Thanks i will try it , i hope it will work with Qt