Important: Please read the Qt Code of Conduct -

Mouse drag/swipe event in qt

  • Hi,
    I need to know a mouse event drag can be detected in qt.I need to give swipe events in qwebview.I tried mouseDragEnter and leave event ,but its gets called only if I selected an item and drag. I simply need to drag mouse like drag to see photos in a slideshow . I am using QApplication::postEvent() method to post events to qwebview. I have the mouse start position ,end position and the velocity .How it is possible to give such a drag/swipe event to my widget.

Log in to reply