QQuickView reimplement mouse event does not work on Windows Phone 8



  • 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.