|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QScreenDriverPlugin Class Reference
[QtGui module]

The QScreenDriverPlugin class is an abstract base class for graphics driver plugins. More...

    #include <QScreenDriverPlugin>

Inherits QObject.

- List of all members, including inherited members

### Public Functions

- QScreenDriverPlugin ( QObject * parent = 0 )
- ~QScreenDriverPlugin ()
- virtual QScreen * create ( const QString & key, int displayId ) = 0
- virtual QStringList keys () const = 0

- 28 public functions inherited from QObject

### Additional Inherited Members

- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 4 static public members inherited from QObject
- 7 protected functions inherited from QObject

## Detailed Description

The QScreenDriverPlugin class is an abstract base class for graphics driver plugins.

Note that this class is only available in Qtopia Core.

QScreenDriverPlugin is a simple plugin interface that makes it easy to create custom graphics drivers that can be loaded dynamically into applications using the QScreenDriverFactory class.

Writing a custom graphics driver plugin is achieved by subclassing QScreenDriverPlugin, reimplementing the pure virtual keys() and create() functions, and exporting the class using the Q_EXPORT_PLUGIN2() macro. See How to Create Qt Plugins for details.

See also QScreen, QScreenDriverFactory, and Running Applications.

## Member Function Documentation

### QScreenDriverPlugin::QScreenDriverPlugin ( QObject * parent = 0 )

Constructs a graphics driver plugin with the given parent.

Note that this constructor is invoked automatically by the Q_EXPORT_PLUGIN2() macro, so there is no need for calling it explicitly.

### QScreenDriverPlugin::~QScreenDriverPlugin ()

Destroys this graphics driver plugin.

Note that Qt destroys a plugin automatically when it is no longer used, so there is no need for calling the destructor explicitly.

### QScreen * QScreenDriverPlugin::create ( const QString & key, int displayId ) `[pure virtual]`

Creates a plugin matching the driver specified by the given key, using the display specified by displayId. Keys are case-insensitive.

See also keys().

### QStringList QScreenDriverPlugin::keys () const `[pure virtual]`

Returns the list of valid keys, i.e. the screen drivers supported by this plugin.

Qtopia Core currently supports the following drivers by default: `QVfb` (Qtopia Core's virtual framebuffer), `LinuxFb` (The Linux framebuffer), `Transformed` (for rotated displays) and `VNC` (a VNC server).

See also create().