EffectWidget Class

( Phonon::EffectWidget )

The EffectWidget class provides a widget to control the parameters of an Effect. 更多...

头: #include <Phonon/EffectWidget>
Since: Qt 4.4
继承: QWidget

额外继承成员

详细描述

The EffectWidget class provides a widget to control the parameters of an Effect.

The EffectWidget class provides a widget, with which an effects parameters can be controlled. The widget does not have an API, and is constructed with the Effect , of which parameters should be controlled.

    Phonon::Effect *effect = new Phonon::Effect(effectDescription);
    path.insertEffect(effect);
    Phonon::EffectWidget *effectWidget = new Phonon::EffectWidget(effect);
    effectWidget->show();
					

The following image shows an example of an effect widget.

Note that some audio effects do not have parameters, and the widget will then not show() at all.

另请参阅 Effect , BackendCapabilities , EffectDescription ,和 Phonon 模块 .