Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Incorrect touch state



  • Hi
    Iissue is sometimes touch is not detecting we getting error incorrect touchstate. When I analyse the issue this message is in qtbase/src/platformsupport/input/libinput/qlibinputtouch.cpp

    void QLibInputTouch::processTouchDown(libinput_event_touch *e)
    {
    int slot = libinput_event_touch_get_slot(e);
    DeviceState *state = deviceState(e);
    *QWindowSystemInterface::TouchPoint tp = state->point(slot);
    if (tp) {
    qWarning("Incorrect touch state");
    }
    else {
    QWindowSystemInterface::TouchPoint newTp;
    newTp.id = qMax(0, slot);
    newTp.state = Qt::TouchPointPressed;
    newTp.area = QRect(0, 0, 8, 8);
    newTp.area.moveCenter(getPos(e));
    state->m_points.append(newTp);
    }
    }

    Can anyone help me onthis?

    Regards
    Divya R Dharan


Log in to reply