这是indexloc提供的服务,不要输入任何密码
Skip to content

Error: No constructor found for "TapHandler" #448

@redstoneleo

Description

@redstoneleo

I tested an example from https://doc.qt.io/qt-5/qmlfirststeps.html#handling-user-input

import QtQuick 2.12

Rectangle {
    width: 200
    height: 100
    color: "red"

    Text {
        anchors.centerIn: parent
        text: "Hello, World!"
    }

    TapHandler {
        onTapped: parent.color = "blue"
    }
}

with https://qmlweb.github.io/, but got Error: No constructor found for "TapHandler"
So any way to fix the problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions