Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to get Thumbnail image from mp3 file using QMediaMetaData class?
Forum Updated to NodeBB v4.3 + New Features

How to get Thumbnail image from mp3 file using QMediaMetaData class?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 500 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rhaps20
    wrote on last edited by
    #1

    OS : debian11
    Language : c++
    Target : android
    Qt version : 6.4.2
    Qt creator version 9.0(maybe)

    metaData = mediaPlayer->metaData();
        titleLabel->setText(metaData.stringValue(metaData.Title));
        albumLabel->setText(metaData.stringValue(metaData.AlbumTitle));
        artistLabel->setText(metaData.stringValue(metaData.AlbumArtist));
        QVariant var = metaData.value(metaData.ThumbnailImage);
    

    I succeeded get title, album title and artist.

    but I don't know how to get thumbnail image using QMediaMetaData class.

    Could you give me a hint?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you check the type contained in your QVariant ? Based on that you can type cast it to use.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rhaps20
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved