42 #include <QtGui/qpaintdevice.h> 43 #include <QtGui/qpixmap.h> 44 #include <QtGui/qwidget.h> 47 #if !defined(QT_NO_EGL) 49 #include <QtGui/private/qgraphicssystem_p.h> 50 #include <QtGui/private/qapplication_p.h> 51 #include <QtGui/qdesktopwidget.h> 84 screenNumber =
qApp->desktop()->screenNumber(static_cast<QWidget *>(device));
87 if (screenNumber < 0 || screenNumber >= screens.
size())
89 return screens[screenNumber];
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
NativePixmapType EGLNativePixmapType
NativeWindowType EGLNativeWindowType
Q_GUI_EXPORT EGLNativePixmapType nativePixmap(QPixmap *)
virtual int devType() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_GUI_EXPORT EGLNativeDisplayType nativeDisplay()
int size() const
Returns the number of items in the list.
static QPlatformScreen * screenForDevice(QPaintDevice *device)
void setPaintDeviceFormat(QPaintDevice *dev)
The QPixmap class is an off-screen image representation that can be used as a paint device...
void setPixelFormat(QImage::Format pixelFormat)
NativeDisplayType EGLNativeDisplayType
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Q_GUI_EXPORT EGLNativeWindowType nativeWindow(QWidget *)
The QList class is a template class that provides lists.