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. Hello world program already fails when using an anchor
Forum Updated to NodeBB v4.3 + New Features

Hello world program already fails when using an anchor

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
1 Posts 1 Posters 173 Views 2 Watching
  • 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.
  • T Offline
    T Offline
    themts
    wrote on last edited by
    #1

    Hello guys,

    I wanted to try out webassembly, so after installation I simply made a hello world-app.

    import QtQuick
    import QtQuick.Window
    
    Window {
        id: window
        visible: true
        width: 640
        height: 480
        visibility: Window.FullScreen
        title: qsTr("Hello WebAssembly")
    
        Text {
            y: 56
            text: qsTr("Hello WebAssembly")
        }
    }
    
    

    This code actually works, but as soon as I simply add this to my Text component, it fails.

    anchors.horizontalCenter: parent.horizontalCenter
    

    Application exit (RuntimeError: index out of bounds)

    Some infos about my versions:

    • QT: 6.5
    • emsdk: 3.1.39

    I think there must be something very basic not ok...

    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