I want to use QMediaObject to get metadata from a photo. The only way to achieve this is to use QMediaPlayer, which inherits from QMediaObject and use the setMedia method. However, it seems that QMediaPlayer reads only video and audio formats. Logically, QCamera, which inherits from QMediaObject too, should do the same job with photos, but I canβt find a way to set any photo. However, this should be possible because the photos are included in the list of metadata categories http://qt-project.org/doc/qt-5.0/qtmultimedia/qmediametadata.html .
source
share