| 1 |
The Qt Platform Abstraction - QPA |
| 2 |
|
| 3 |
QPA is the platform abstraction layer for Qt 5 and replaces QWS and the |
| 4 |
platform ports from Qt 4. |
| 5 |
|
| 6 |
There is currently little documentation for QPA. The best approach for |
| 7 |
developing a new platform plugin is to look at the other plugins and |
| 8 |
see how they implement the APIs in question. The "minimal" plugin |
| 9 |
is a good starting point. The xcb, windows, cocoa, and qnx plugins |
| 10 |
are also actively developed and up to date. |
| 11 |
|
| 12 |
QPA plugins are implemented by subclassing various QPlatform* |
| 13 |
classes. There are two "root" classes: QPlatformIntegration for |
| 14 |
window system integration and QPlatformTheme for deeper platform |
| 15 |
theming and integration. QStyle is not a part of QPA. |
| 16 |
|
| 17 |
There are no source or binary compatibility guarantees for the QPA |
| 18 |
classes, meaning that a platform plugin is only guaranteed to work |
| 19 |
with the Qt version it was developed against. API changes will |
| 20 |
however only be made in minor releases. (5.1, 5.2, and so on.) |
| 21 |
|
| 22 |
Class Overview: |
| 23 |
|
| 24 |
QPlatformIntegration |
| 25 |
QPlatformWindow |
| 26 |
QPlatformBackingStore |
| 27 |
QPlatformOpenGLContext |
| 28 |
QPlatformSharedGraphicsCache |
| 29 |
QPlatformFontDatabase |
| 30 |
QPlatformClipboard |
| 31 |
QPlatformDrag |
| 32 |
QAbstractEventDispatcher |
| 33 |
QPlatformInputContext |
| 34 |
QPlatformAccessibility |
| 35 |
QPlatformNativeInterface |
| 36 |
QPlatformServices |
| 37 |
|
| 38 |
QPlatformTheme |
| 39 |
QPlatformMenu |
| 40 |
QPlatformMenuBar |
| 41 |
QPlatformDialogHelper |
| 42 |
platform palettes |
| 43 |
platform fonts |
| 44 |
theme hints |
| 45 |
|
| 46 |
src/platformsupport contains several helper classes for implementing |
| 47 |
platform plugins on unix-like systems. |