Home · Modules · Classes · Namespaces · Functions

QxtFlowView Class Reference
[QxtGui module]

The QxtFlowView widget is an item view for images with impressive flow effects More...

    #include <QxtFlowView>

Inherits QWidget.

Public Types

Properties

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The QxtFlowView widget is an item view for images with impressive flow effects

A widget for showin images with animation effects, like Apple's Cover Flow (in iTunes and iPod). Images are arranged in form of slides, one main slide is shown at the center with few slides on the left and right sides of the center slide. When the next or previous slide is brought to the front, the whole slides flow to the left or to the right with smooth animation effect; until the new slide is finally placed at the center.

"QxtFlowView in action."

This is a derived work of PictureFlow


Member Type Documentation

enum QxtFlowView::ReflectionEffect

This enum describes available reflection effects.

ConstantValueDescription
QxtFlowView::NoReflection0No reflection
QxtFlowView::PlainReflection1Plain reflection
QxtFlowView::BlurredReflection2Blurred reflection


Property Documentation

backgroundColor : QColor

This property holds the background color.

The default value is black.

Access functions:

currentIndex : QModelIndex

This property holds the current index.

The slide of the current index is shown in the middle of the viewport.

Note: No animation effect will be produced.

Access functions:

See also showSlide().

pictureColumn : int

This property holds the picture column.

The default value is 0.

Access functions:

pictureRole : int

This property holds the picture role.

The default value is Qt::DecorationRole.

Access functions:

reflectionEffect : ReflectionEffect

This property holds the reflection effect.

The default value is PlainReflection.

Access functions:

rootIndex : QModelIndex

This property holds the root index.

The root index is the parent index to the view's toplevel items. The root can be invalid.

Access functions:

slideSize : QSize

This property holds the slide size.

The slide dimensions are in pixels.

The default value is 150x200.

Access functions:


Member Function Documentation

QxtFlowView::QxtFlowView ( QWidget * parent = 0 )

Constructs a new QxtFlowView with parent.

QxtFlowView::~QxtFlowView ()

Destructs the flow view.

void QxtFlowView::currentIndexChanged ( QModelIndex index )   [signal]

This signal is emitted whenever the current index has changed.

QAbstractItemModel * QxtFlowView::model ()

Returns the model.

See also setModel().

void QxtFlowView::render ()   [slot]

Rerender the widget. Normally this function will be automatically invoked whenever necessary, e.g. during the transition animation.

void QxtFlowView::setModel ( QAbstractItemModel * model )

Sets the model.

Note: The view does not take ownership of the model unless it is the model's parent object because it may be shared between many different views.

See also model().

void QxtFlowView::showNext ()   [slot]

Shows next slide using animation effect.

void QxtFlowView::showPrevious ()   [slot]

Shows previous slide using animation effect.

void QxtFlowView::showSlide ( QModelIndex index )   [slot]

Go to specified slide at index using animation effect.

void QxtFlowView::triggerRender ()   [slot]

Schedules a rendering update. Unlike render(), this function does not cause immediate rendering.


Copyright © 2007-2011 Qxt Foundation
Qxt 0.6.2