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. WebAction cause "Invalid attached object assignment"
Forum Updated to NodeBB v4.3 + New Features

WebAction cause "Invalid attached object assignment"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 1.8k 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.
  • W Offline
    W Offline
    webberg
    wrote on last edited by
    #1

    Hello,
    I add WebEngineView in QML, and hope to disable right button menu. I find WebAction maybe disable it from assistant. So I write the following code:

    WebEngineView {
                id: viewer
                objectName: "webViewer"
                focus: true
                anchors.fill: parent
                WebAction: Qt.NoWebAction
    }
    

    But when I run it, it tell me "qrc:/qml/WebView/WebView.qml:323:13: Invalid attached object assignment" in WebAction: Qt.NoWebAction line. So what happened?

    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