How can I get the length of a song in Qt 5.1 API? I think I can read it using Length
metadata but I'm not sure if this metadata will be available for all audio files.
How to get length of a song using Qt 5.1?
4.1k views Asked by Donotalo At
2
You seem to be looking for the
duration
property.This would be the QML solution:
This would be the C++ solution: