QMediaList Class Reference
|
Constant | Value | Description |
---|---|---|
QMediaList::ShowAll | 0 | Display All entries. |
QMediaList::ShowGrouped | 1 | Display a unique list. |
Constant | Value | Description |
---|---|---|
QMediaList::ShowEmpty | 0 | Display empty field when no data is available. |
QMediaList::ShowEmptyAsUnknown | 1 | Display Unknown when empty field. |
QMediaList::HideEmpty | 2 | Do not display if field has no data. |
Constant | Value | Description |
---|---|---|
QMediaList::Title | 0x01 | Title of media |
QMediaList::Url | 0x02 | Filename, http address |
QMediaList::Artist | 0x04 | Artist of media |
QMediaList::Album | 0x08 | Album of media |
QMediaList::Genre | 0x10 | Genre of media |
QMediaList::MimeType | 0x40 | MimeType of media |
Constant | Value | Description |
---|---|---|
QMediaList::Ascending | 0 | Ascending order sorting. |
QMediaList::Descending | 1 | Descending order sorting. |
QMediaList::Unsorted | 2 | No sorting. |
Constructs a list from the Document System.
Constructs a QMediaList from a QMediaPlaylist playlist.
Constructs a copy of the other QMediaList.
Appends new filter on Category filterType containing string text
eg. addFilter(QMediaList::Title,"Billy");
Returns false on error.
Set filter mode to create, filter will not be applied until endFilter() is called.
Resets current filter.
Returns whether to display all, or to aggregate the data type set by setDisplayRole()
Returns the media lists default display role
See also setDisplayRole() and Qt::DisplayRole.
Applies current filter to data.
Returns true if filters are in effect on the model.
Constructs a QMediaPlaylist from the selected index, or if index is empty, then from the whole QMediaList.
Randomizes the filtered list.
Applies current filters to data and refresh content of list.
Removes filter on Category filterType
eg. removeFilter(QMediaList::Album);
Returns false on error.
Set what role is currently begin displayed. Setting the grouping changes the display from unique to all.
Options for role are: QMediaPlaylist::DataRole
eg. setDisplayRole(QMediaPlaylist::Title, QMediaList::ShowAll);
See also displayRole().
Resets current filter, applying new filter on Category filterType containing string text
eg. setFilter(QMediaList::MimeType,"audio");
Returns false on error.
Sets the given model to be used as the data provider for the list to playlist
Sorts the list by sortType
This is an overloaded member function, provided for convenience.
Sorts the list by sortType, using sort order roles
Set role to handle empty data field.
Options for role are: QMediaList::Properties
eg. showEmpty(QMediaList::HideEmpty);
Assigns the specified medialist to this object.
Returns true if this QMediaList and the other are equal; otherwise returns false.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com