Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. wasm project crashes after popup.close()
Forum Updated to NodeBB v4.3 + New Features

wasm project crashes after popup.close()

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
1 Posts 1 Posters 242 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.
  • J Offline
    J Offline
    Jan Bakker
    wrote on last edited by
    #1

    Hello,

    QT: 6.5.2
    MinGW: No problems
    WebAssembly: popup.close() problem

    Maybe more people have the same experience as me and hopefully you can help me. When I run my project in webassembly, the project crahses when I trigger popup.close(). The project will end up with: Application exit (RuntimeError: memory access out of bounds)

    No error occurs if I just use the normal close policies instead of the close() method. I did not encouter this problem earlier when I ran the project in previous versions. It started in version 6.5.2.

    Thank you.

    Popup {
        id: root
        property alias picSource: pic.source
    
        closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
        parent: Overlay.overlay
        anchors.centerIn: Overlay.overlay
    
        background: Rectangle {
            id: bg
            color: Material.foreground
            opacity: 0.7
        }
    
        Image {
            id: pic
            anchors.centerIn: root
    
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    //console.log("before popup close");
                    root.close();  //<<<------
                    //console.log("after popup close");
                }
            }
        }
    
    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