PDA

View Full Version : Access icon from RC file



Joelito
5th November 2017, 05:59
Hi:

How do you access the icon in a resource file to use it as Form's icon?

// resource.rc
IDI_MAIN DISCARDABLE "app.ico"

I want to use IDI_MAIN to set it in setWindowIcon(), thanks.

high_flyer
6th November 2017, 14:24
The doc is your friend:
http://doc.qt.io/qt-5/resources.html