Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QQuickView reimplement mouse event does not work on Windows Phone 8
QtWS25 Last Chance

QQuickView reimplement mouse event does not work on Windows Phone 8

Scheduled Pinned Locked Moved QML and Qt Quick
qquickviewqquickwindow
1 Posts 1 Posters 736 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lemta2000
    wrote on last edited by
    #1

    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 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved