I cannot obtain the size of touch points on Ubuntu 20.04,but the Ubuntu 16.04 is ok.
Asked by
zhuhongguo
I cannot obtain the size of touch points on Ubuntu 20.04,but the Ubuntu 16.04 is ok.
The current acquisition method is as follows,
bool GraphicsView:
{
QEvent::Type type = event->type();
if(type == QEvent::TouchBegin || type == QEvent::TouchUpdate
|| type == QEvent::TouchEnd){
QTouchEvent *pTouchEvent = static_cast(event);
QList touchPoints = pTouchEvent-
int nId = 0;
QColor penColor;
foreach (const QTouchEvent:
qDebug() << "id" << tp.id() << "size" << tp.ellipseDiame
}
return true;
}
return QGraphicsView:
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.