QQuickView reimplement mouse event does not work on Windows Phone 8
-
wrote on 18 Jun 2015, 08:49 last edited by
Hello everyone,
I'm trying custom qquickview and reimplement mouse press event. On the Desktop 8.1 (winrt) that is ok, but on the windows phone 8.1 it does't work, nothing happen when press on screen. Here is code:
class QQuickViewEx : public QQuickView
{
Q_OBJECT
public:
QQuickViewEx(QWindow *parent = 0);
virtual ~QQuickViewEx();public:
virtual void mousePressEvent(QMouseEvent *)
{
QMessageBox::information( 0, "info", "Pressed",QMessageBox::Ok); //OK on desktop, nothing on WP
}
}I'm using qt 5.4.1 for winrt.
Anyone know reason for this? Thanks!
1/1