How can I get QImage object in my C++ code from camera preview? I have found somewhere said that I need to use QDeclarativeImageProvider. Can anyone give me some sample code on how to use it? I have been able to get the providerId and imageId from preview's path. But QDeclarativeImageProvider is just an interface and I cannot create object from it. Then how can I call the requestImage method of it?
Thanks in advance for any suggestions.