Qt 4.8: QSymbianGraphicsSystemHelper Class Reference

Qt Reference Documentation

# QSymbianGraphicsSystemHelper Class Reference

QSymbianGraphicsSystemHelper defines functions required by QtMultimediaKit in order to enable video rendering. More...

     #include <QSymbianGraphicsSystemHelper>

- List of all members, including inherited members

## Public Types

enum | NativePaintMode { NativePaintModeDefault, NativePaintModeZeroFill, NativePaintModeWriteAlpha, NativePaintModeDisable }

## Static Public Members

void | releaseCachedGpuResources ()
void | setIgnoreFocusChanged ( QWidget * widget, bool value )
void | setNativePaintMode ( QWidget * widget, NativePaintMode mode )
void | setNativePaintMode ( WId wid, NativePaintMode mode )
void | setReceiveNativePaintEvents ( QWidget * widget, bool value )

## Detailed Description

QSymbianGraphicsSystemHelper defines functions required by QtMultimediaKit in order to enable video rendering.

This class is not intended for use by applications.

## Member Type Documentation

### enum QSymbianGraphicsSystemHelper::NativePaintMode

This enum controls the way in which QWidget paints content from the Qt backing store into the corresponding native window surface.

Constant | Value | Description
--- | --- | ---
`QSymbianGraphicsSystemHelper::NativePaintModeDefault` | `0` | Default painting behaviour.
`QSymbianGraphicsSystemHelper::NativePaintModeZeroFill` | `1` | Ignore contents of backing store, and fill the window surface region with zeroes.
`QSymbianGraphicsSystemHelper::NativePaintModeWriteAlpha` | `2` | By default, alpha values are only copied from the backing store into the window surface if the top-level widget has the Qt::WA_TranslucentBackground attribute. If this mode is set, alpha values are copied regardless of the value of that attribute.
`QSymbianGraphicsSystemHelper::NativePaintModeDisable` | `3` | Do not paint anything into the native window surface.

## Member Function Documentation

### void QSymbianGraphicsSystemHelper::releaseCachedGpuResources ()`[static]`

### void QSymbianGraphicsSystemHelper::setIgnoreFocusChanged ( QWidget * widget, bool value )`[static]`

Specify whether native focus change events should be ignored by the widget.

### void QSymbianGraphicsSystemHelper::setNativePaintMode ( QWidget * widget, NativePaintMode mode )`[static]`

Set the native paint mode to the specified mode.

### void QSymbianGraphicsSystemHelper::setNativePaintMode ( WId wid, NativePaintMode mode )`[static]`

Set the native paint mode to the specified mode.

### void QSymbianGraphicsSystemHelper::setReceiveNativePaintEvents ( QWidget * widget, bool value )`[static]`

Specify whether the widget should receive receive native paint events.

If enabled, the QWidget::beginNativePaintEvent slot is called before content from the backing store is written into the native window surface, and QWidget::endNativePaintEvent is called once writing to the native window surface is complete.

This function is intended for use by QWidget clients such as video widgets, which wish to use Direct Screen Access to write into the native window surface. Such clients should stop their DSA session on receipt of QWidget::beginNativePaintEvent, and re-start it on receipt of QWidget::endNativePaintEvent.