60 qDebug() <<
"startSystemResize" << edges;
62 qDebug() <<
" -> supported";
64 qDebug() <<
" -> not supported";
66 qDebug() <<
"startSystemMove";
68 qDebug() <<
" -> supported";
70 qDebug() <<
" -> not supported";
76 switch (
event->type()) {
82 qDebug() <<
"Touch update";
108 int main(
int argc,
char **argv)
The QEvent class is the base class of all event classes. Event objects contain event parameters.
QGraphicsObject * parent
the parent of the item
The QGuiApplication class manages the GUI application's control flow and main settings.
The QMargins class defines the four margins of a rectangle.
The QMouseEvent class contains parameters that describe a mouse event.
bool event(QEvent *event) override
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPainter class performs low-level painting on widgets and other paint devices.
void drawText(const QPointF &p, const QString &s)
void fillRect(const QRectF &, const QBrush &)
The QPointF class defines a point in the plane using floating point precision.
QRasterWindow is a convenience class for using QPainter on a QWindow.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QRect class defines a rectangle in the plane using integer precision.
constexpr QRect marginsRemoved(const QMargins &margins) const noexcept
The QSize class defines the size of a two-dimensional object using integer point precision.
The QTouchEvent class contains parameters that describe a touch event.
The QWindow class represents a window in the underlying windowing system.
int width
the width of the window's geometry
bool startSystemMove()
Start a system-specific move operation.
bool startSystemResize(Qt::Edges edges)
Start a system-specific resize operation.
int height
the height of the window's geometry
[Window class definition]
bool event(QEvent *event) override
void resizeOrMove(const QPointF &p)
Window(QWindow *parent=nullptr)
void paintEvent(QPaintEvent *) override
void paintEvent(QPaintEvent *event) override
int main(int argc, char **argv)
QT_END_INCLUDE_NAMESPACE typedef double qreal
GLint GLsizei GLsizei height
GLint GLenum GLsizei GLsizei GLsizei GLint border
GLfixed GLfixed GLint GLint GLfixed points
#define QStringLiteral(str)
QApplication app(argc, argv)
[0]