101 int main(
int argc,
char **argv)
107 vbox->
addWidget(
new QLabel(
"The blue ellipses should indicate touch point contact patches"));
108 qDebug() <<
"Touch devices:";
113 <<
" \"" <<
device->name() <<
"\", max " <<
device->maximumTouchPoints()
114 <<
" touch points, capabilities:";
115 const QPointingDevice::Capabilities capabilities =
device->capabilities();
122 if (capabilities & QPointingDevice::Velocity)
125 str <<
" NormalizedPosition";
126 if (capabilities & QInputDevice::DeviceType::MouseEmulation)
127 str <<
" MouseEmulation";
140 QMenu *
menu = mw.menuBar()->addMenu(
"Menu");
148 view->scale(1.5, 1.5);
void setPen(const QPen &pen)
void setBrush(const QBrush &brush)
The QAction class provides an abstraction for user commands that can be added to different user inter...
void triggered(bool checked=false)
The QApplication class manages the GUI application's control flow and main settings.
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
The QBrush class defines the fill pattern of shapes drawn by QPainter.
The QEvent class is the base class of all event classes. Event objects contain event parameters.
The QEventPoint class provides information about a point in a QPointerEvent.
The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
QList< QGraphicsItem * > childItems() const
@ ItemIgnoresTransformations
void setFlag(GraphicsItemFlag flag, bool enabled=true)
void setAcceptTouchEvents(bool enabled)
virtual bool sceneEvent(QEvent *event)
The QGraphicsRectItem class provides a rectangle item that you can add to a QGraphicsScene.
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
void addItem(QGraphicsItem *item)
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
The QLabel widget provides a text or image display.
The QMainWindow class provides a main application window.\inmodule QtWidgets.
void setCentralWidget(QWidget *widget)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
The QPen class defines how a QPainter should draw lines and outlines of shapes.
constexpr qreal y() const noexcept
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QString class provides a Unicode character string.
The QTextStream class provides a convenient interface for reading and writing text.
The QTouchEvent class contains parameters that describe a touch event.
The QVBoxLayout class lines up widgets vertically.
bool sceneEvent(QEvent *e)
int main(int argc, char **argv)
qDeleteAll(list.begin(), list.end())
QT_END_INCLUDE_NAMESPACE typedef double qreal
GLfloat GLfloat GLfloat w
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
QGraphicsEllipseItem * ellipse
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent