Convenience subclass of QWindow that is also a QPaintDevice. More...
Header: | #include <QPaintDeviceWindow> |
qmake: | QT += gui |
Since: | Qt 5.4 |
Inherits: | QWindow and QPaintDevice |
Inherited By: |
void | update() |
virtual void | paintEvent(QPaintEvent *event) |
Convenience subclass of QWindow that is also a QPaintDevice.
QPaintDeviceWindow is like a regular QWindow, with the added functionality of being a paint device too. Whenever the content needs to be updated, the virtual paintEvent() function is called. Subclasses, that reimplement this function, can then simply open a QPainter on the window.
Note: This class cannot directly be used in applications. It rather serves as a base for subclasses like QOpenGLWindow.
See also QOpenGLWindow.
[virtual protected]
void QPaintDeviceWindow::paintEvent(QPaintEvent *event)Handles paint events passed in the event parameter.
The default implementation does nothing. Reimplement this function to perform painting. If necessary, the dirty area is retrievable from the event.
Marks the rect of the window as dirty and schedules a repaint.
Note: Subsequent calls to this function before the next paint event will get ignored, but rect is added to the region to update.
Note: For non-exposed windows the update is deferred until the window becomes exposed again.
Marks the region of the window as dirty and schedules a repaint.
Note: Subsequent calls to this function before the next paint event will get ignored, but region is added to the region to update.
Note: For non-exposed windows the update is deferred until the window becomes exposed again.
[slot]
void QPaintDeviceWindow::update()Marks the entire window as dirty and schedules a repaint.
Note: Subsequent calls to this function before the next paint event will get ignored.
Note: For non-exposed windows the update is deferred until the window becomes exposed again.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: