mediaMetaData QML Value Type

Provides meta-data for media files. 更多...

import 语句: import QtMultimedia

方法

详细描述

Meta-data is supplementary data describing media. See QMediaMetaData for available meta data attributes.

方法文档编制

void clear ()

Removes all data from the MediaMetaData object.

void insert ( Key k , variant value )

插入 value into a Key: k .

bool isEmpty ()

返回 true if the meta data contains no items: otherwise returns false .

list < Key > keys ()

Returns a list of MediaMetaData.Keys.

string metaDataKeyToString ( Key key )

returns a string representation of key that can be used when presenting meta data to users.

void remove ( Key k )

Removes meta data from a Key: k .

string stringValue ( Key key )

Returns the meta data for key key 作为 QString .

This is mainly meant to simplify presenting the meta data to a user.

variant value ( Key key )

Returns the meta data value for Key key ,或 null QVariant if no meta-data for the key is available.