QtBase
v6.3.1
|
Convenience subclass of QWindow that is also a QPaintDevice. More...
#include <qpaintdevicewindow.h>
Public Slots | |
void | update () |
Public Slots inherited from QWindow | |
Q_REVISION (2, 1) void requestActivate() | |
void | setVisible (bool visible) |
void | show () |
void | hide () |
void | showMinimized () |
void | showMaximized () |
void | showFullScreen () |
void | showNormal () |
bool | close () |
void | raise () |
void | lower () |
bool | startSystemResize (Qt::Edges edges) |
Start a system-specific resize operation. More... | |
bool | startSystemMove () |
Start a system-specific move operation. More... | |
void | setTitle (const QString &) |
void | setX (int arg) |
void | setY (int arg) |
void | setWidth (int arg) |
void | setHeight (int arg) |
void | setGeometry (int posx, int posy, int w, int h) |
void | setGeometry (const QRect &rect) |
Sets the geometry of the window, excluding its window frame, to rect. More... | |
void | setMinimumWidth (int w) |
void | setMinimumHeight (int h) |
void | setMaximumWidth (int w) |
void | setMaximumHeight (int h) |
Q_REVISION (2, 1) void alert(int msec) | |
Q_REVISION (2, 3) void requestUpdate() | |
Public Slots inherited from QObject | |
void | deleteLater () |
Properties | |
int | width |
the width of the window's geometry More... | |
int | height |
the height of the window's geometry More... | |
Properties inherited from QWindow | |
QString | title |
the window's title in the windowing system More... | |
Qt::WindowModality | modality |
the modality of the window More... | |
Qt::WindowFlags | flags |
the window flags of the window More... | |
int | x |
the x position of the window's geometry More... | |
int | y |
the y position of the window's geometry More... | |
int | width |
the width of the window's geometry More... | |
int | height |
the height of the window's geometry More... | |
int | minimumWidth |
the minimum width of the window's geometry More... | |
int | minimumHeight |
the minimum height of the window's geometry More... | |
int | maximumWidth |
the maximum width of the window's geometry More... | |
int | maximumHeight |
the maximum height of the window's geometry More... | |
bool | visible |
whether the window is visible or not More... | |
bool | active |
the active status of the window More... | |
Visibility | visibility |
the screen-occupation state of the window More... | |
Qt::ScreenOrientation | contentOrientation |
the orientation of the window's contents More... | |
qreal | opacity |
The opacity of the window in the windowing system. More... | |
Properties inherited from QObject | |
QString | objectName |
the name of this object More... | |
Convenience subclass of QWindow that is also a QPaintDevice.
\inmodule QtGui
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.
Definition at line 52 of file qpaintdevicewindow.h.
|
protected |
Definition at line 218 of file qpaintdevicewindow.cpp.
|
overrideprotectedvirtual |
Override this to handle any event (ev) sent to the window. Return true
if the event was recognized and processed.
Remember to call the base class version if you wish for mouse events, key events, resize events, etc to be dispatched as usual.
Reimplemented from QWindow.
Reimplemented in Window, Window, Window, RasterWindow, InputTestWindow, Window, Window, Window, and RasterWindow.
Definition at line 193 of file qpaintdevicewindow.cpp.
|
overrideprotectedvirtual |
The expose event (ev) is sent by the window system when a window moves between the un-exposed and exposed states.
An exposed window is potentially visible to the user. If the window is moved off screen, is made totally obscured by another window, is minimized, or similar, this function might be called and the value of isExposed() might change to false. You may use this event to limit expensive operations such as animations to only run when the window is exposed.
This event should not be used to paint. To handle painting implement paintEvent() instead.
A resize event will always be sent before the expose event the first time a window is shown.
Reimplemented from QWindow.
Reimplemented in Window, RasterWindow, Window, Window, Window, Window, Window, GLWindow, Window, Window, Window, and RasterWindow.
Definition at line 185 of file qpaintdevicewindow.cpp.
|
overrideprotectedvirtual |
Reimplemented from QPaintDevice.
Reimplemented in QOpenGLWindow, and QRasterWindow.
Definition at line 134 of file qpaintdevicewindow.cpp.
|
overrideprotectedvirtual |
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.
Reimplemented from QWindow.
Reimplemented in Window, ColoredWindow, QOpenGLWindow, EventPosterWindow, ClickWindow, ClickWindow, ClickWindow, CursorWindow, CursorWindow, ItemWindow, PaintWindow, ColoredWindow, PainterWindow, Window, QWindowsDragCursorWindow, QShapedPixmapWindow, and RasterWindow.
Definition at line 125 of file qpaintdevicewindow.cpp.
|
slot |
Marks the entire window as dirty and schedules a repaint.
Definition at line 79 of file qpaintdevicewindow.cpp.
Marks the rect of the window as dirty and schedules a repaint.
Definition at line 93 of file qpaintdevicewindow.cpp.
Marks the region of the window as dirty and schedules a repaint.
Definition at line 110 of file qpaintdevicewindow.cpp.
|
readwrite |
|
readwrite |