How can I read the icons from a DLL or an EXE file, using C++ (and Qt) ?
I can’t find anything relevant on google, I only get how to change application icon using qt, which is not what I need.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand what you’re trying to do, this should be possible through the general
LoadResourcefunction or the specificLoadIconfunction. An example of the former can be found here.You would create a handle to the exe or DLL using
LoadLibrary, which you subsequently use as an argument in theLoadResourceorLoadIconfunction.I don’t know of any Qt functions providing similar options, but perhaps others do.