Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. all event(QEvent *event) in cpp file was be ignore by PinchArea for qml in my android
Forum Updated to NodeBB v4.3 + New Features

all event(QEvent *event) in cpp file was be ignore by PinchArea for qml in my android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 296 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.
  • zenghsingZ Offline
    zenghsingZ Offline
    zenghsing
    wrote on last edited by
    #1

    my class WorkArea : public QQuickPaintedItem~

    But I find all event(QEvent *event) in cpp file was be ignore by PinchArea for qml in my android...

    Does it mean I must write those code for Zoom in/out and Screen-Move?

    I had write some code to control my object to move.

    in my qml:
    WorkArea{
    id:mainWindow
    objectName: "mainWin"
    anchors.fill: parent
    PinchArea{
    anchors.fill: parent
    pinch.target:mainWindow
    pinch.minimumScale: 0.1
    pinch.maximumScale: 10
    pinch.dragAxis: Pinch.XAndYAxis
    }
    }
    in my cpp file:
    bool WorkArea::event(QEvent *event){
    ...
    }

    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