Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QMediaMenuItem Class Reference
[QtMediaModule]

The QMediaMenuItem class is used with QMediaMenu to provide Multimedia menus More...

    #include <QMediaMenuItem>

Inherits QAbstractMediaMenuItem.

Public Functions

Additional Inherited Members


Detailed Description

The QMediaMenuItem class is used with QMediaMenu to provide Multimedia menus

The QMediaMenuItem class provides filtered menus items by Artist, Album, Genre etc.


Member Function Documentation

QMediaMenuItem::QMediaMenuItem ( QMediaList::Roles role, QMediaList * data )

Constructs item with role set to QMediaList::Roles and a QMediaList of data

QMediaMenuItem::QMediaMenuItem ( QMediaList::Roles role, QString filter, QMediaList * data )

Constructs item with role set to QMediaList::Roles, filtered by filter and a QMediaList of data

QMediaMenuItem::QMediaMenuItem ( QIcon * icon, QString text, QMediaList * data )

Constructs item with QIcon icon display text text and a QMediaList of data

QMediaMenuItem::QMediaMenuItem ()

Constructs item

bool QMediaMenuItem::execute ()   [virtual]

Function executed when item selected with no submenu

Reimplemented from QAbstractMediaMenuItem.

void QMediaMenuItem::filterBy ( QString str )

Set current filter string to str

void QMediaMenuItem::paint ( QPainter * painter, const QStyleOptionViewItem & option )   [virtual]

unused, QMediaMenuItem uses defaults This is implemented when creating a custom item from QAbstractMediaMenuItem instead of using QMediaMenuItem. painter QPainter option QStyleOptionViewItem

Reimplemented from QAbstractMediaMenuItem.

QSize QMediaMenuItem::size ()   [virtual]

Returns QSize(-1,-1), QMediaMenuItem uses defaults This is implemented when creating a custom item from QAbstractMediaMenuItem instead of using QMediaMenuItem.

Reimplemented from QAbstractMediaMenuItem.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3