7#include <QtGui/QOpenGLContext>
8#include <QtOpenGL/QOpenGLPaintDevice>
13 : QPlatformBackingStore(window)
14 , m_context(
new QOpenGLContext)
17 m_context->setFormat(window->requestedFormat());
18 m_context->setScreen(window->screen());
37#ifdef QEGL_EXTRA_DEBUG
38 qWarning(
"QEglBackingStore::flush %p", window);
41 m_context->swapBuffers(window);
46 m_context->makeCurrent(window());
47 m_device =
new QOpenGLPaintDevice(window()->size());
58 Q_UNUSED(staticContents);
~QMinimalEglBackingStore()
void endPaint() override
This function is called after painting onto the surface has ended.
void resize(const QSize &size, const QRegion &staticContents) override
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
Combined button and popup list for selecting options.