Important: Please read the Qt Code of Conduct -

Can't access QMediaMetaData::Size

  • Hey, I am trying to access media file size (ex. 3,7mb)... I read documentation and Duration and Size are accessed same way... I does work for Duration, but does not for size...

    Duration, which works... Did same way for Size and does not display any data...
    @ QString duration;
    int dur = player->metaData(QMediaMetaData::Duration).toInt();

Log in to reply