If you use Qt, it support dds format, just get the image path and pass it to QIcon.
If you are using external lib, the lib loader or some method should return a buffer to the image, take this buffer and pass it to a QImage::loadFromData, then pass QImage to a QIcon.