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

ThemeImageItem Class Reference
[QtBaseModule]

The ThemeImageItem class represents an image in a ThemedView. More...

    #include <ThemeImageItem>

Inherits ThemePixmapItem.

Public Functions

Additional Inherited Members


Detailed Description

The ThemeImageItem class represents an image in a ThemedView.

The ThemeImageItem class implements the image element from the theme XML.

You can manually set an image at run-time using setImage() and retrieve the current image with image().

Normally you do not want to call this item's functions directly, but rather specify the relevant attributes and data for this item in the themed view XML.

See also image element.


Member Function Documentation

ThemeImageItem::ThemeImageItem ( ThemeItem * parent, ThemedView * view, const ThemeAttributes & atts )

Constructs a ThemeImageItem. parent, view and atts are passed to the base class constructor.

ThemeImageItem::~ThemeImageItem ()   [virtual]

Destroys the ThemeImageItem.

QPixmap ThemeImageItem::image ( ThemeItem::State state = ThemeItem::Default ) const

Returns the QPixmap for this item for the state state.

See also setImage().

void ThemeImageItem::setImage ( const QPixmap & pixImage, ThemeItem::State state = ThemeItem::Default )

Sets pixImage to be the image for this item for the state state.

See also image().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3