QGraphicsOpacityEffect Class ReferenceThe QGraphicsOpacityEffect class provides an opacity effect. Далее... #include <QGraphicsOpacityEffect> Inherits: QGraphicsEffect. Этот класс был введён в Qt 4.6. Свойства
Открытые функции
Открытые слоты
Сигналы
Переопределённые защищённые функции
Дополнительные унаследованные члены
Подробное описаниеThe QGraphicsOpacityEffect class provides an opacity effect. An opacity effect renders the source with an opacity. This effect is useful for making the source semi-transparent, similar to a fade-in/fade-out sequence. The opacity can be modified using the setOpacity() function. By default, the opacity is 0.7. See also QGraphicsDropShadowEffect, QGraphicsBlurEffect, and QGraphicsColorizeEffect. Описание свойствopacity : qrealThis property holds the opacity of the effect. The value should be in the range of 0.0 to 1.0, where 0.0 is fully transparent and 1.0 is fully opaque. By default, the opacity is 0.7. Функции доступа:
Уведомляющий сигнал:
See also setOpacityMask(). opacityMask : QBrushThis property holds the opacity mask of the effect. An opacity mask allows you apply opacity to portions of an element. Например: ... QLinearGradient alphaGradient(rect.topLeft(), rect.bottomLeft()); alphaGradient.setColorAt(0.0, Qt::transparent); alphaGradient.setColorAt(0.5, Qt::black); alphaGradient.setColorAt(1.0, Qt::transparent); QGraphicsOpacityEffect *effect = new QGraphicsOpacityEffect; effect->setOpacityMask(alphaGradient); ... There is no opacity mask by default. Функции доступа:
Уведомляющий сигнал:
See also setOpacity(). Описание функций-членовQGraphicsOpacityEffect::QGraphicsOpacityEffect ( QObject * parent = 0 )Constructs a new QGraphicsOpacityEffect instance. The parent parameter is passed to QGraphicsEffect's constructor. QGraphicsOpacityEffect::~QGraphicsOpacityEffect ()Destroys the effect. void QGraphicsOpacityEffect::draw ( QPainter * painter ) [virtual protected]Reimplemented from QGraphicsEffect::draw(). void QGraphicsOpacityEffect::opacityChanged ( qreal opacity ) [signal]This signal is emitted whenever the effect's opacity changes. The opacity parameter holds the effect's new opacity. void QGraphicsOpacityEffect::opacityMaskChanged ( const QBrush & mask ) [signal]This signal is emitted whenever the effect's opacity mask changes. The mask parameter holds the effect's new opacity mask. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |