Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. [Bugs] QT Webassembly
Qt 6.12 LTS is out! See what's new in the release blog

[Bugs] QT Webassembly

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 1.1k 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
    jhayar
    wrote on last edited by
    #1

    Hi ,
    Would like to report below behavior on the QT Webassembly

    1. Flickable - during first scroll it behaves okay . but succeeding , seems that mouse was trapped on the first scroll
      i can't explain much because it behaves different than android, ios and desktop app , maybe try it and compare the behavior on other platform

    2. Animation , i have animation that slide down and slide up an element , but on QT WebAssembly animations only works on 1st , but not 2nd invoke
      what i did is below

    Use behavior
    Behavior on y{
    NumberAnimation{
    duration: 450
    easing.type: Easing.InOutCubic
    }
    } = during the first animation , it stops working

    Use 2 PropertyAnimation
    PropertyAnimation{
    id: openAnim
    target: root
    property: 'y'
    duration:450
    to: 0
    easing.type: Easing.InOutCubic
    }
    PropertyAnimation{
    id: closeAnim
    target: root
    property: 'y'
    duration:450
    to: parent.height
    easing.type: Easing.InOutCubic
    }

    running openAnim.start() works at first
    and running closeAnim.start() works but in different behavior , it just skip the animation and then the element y become zero instantly and running openAnim.start() again is not working on the behavior i wanted. closeAnim.start and openAnim.start when running it after the first animation , animation will not work as expected. the behavior is like hiding and show without animation like on css , it's like a property "display" is switching none - block and viceversa .

    1. Timer - so animation won't work good on the QT WebAssembly so i come up to another solution , using Timer
      but this won't work either. below is the script i used
      Timer{
      id:myTimer
      running:true // either false and true it does not work
      repeat:true // either false and true it does not work
      interval: 30
      onTriggered:{
      console.log('timer was invoked')
      }
      }

    and then i invoked myTimer.start() but the function inside onTriggered does not firing.

    any ideas ?

    Thanks

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jhayar
      wrote on last edited by
      #2

      Okay i think i found the answer on the 2nd bugs

      the behavior on QT Webassembly for animation found only on animation that triggers the movement of x and y

      example i have rectangle ,and have a button on it, let say the button has click event that triggers the animation , i don't know if i am correct but base on my observation , when a rectangle { has animation set here } move either x and y , rectangle moves but the animation element stays in its initial position . let say rectangle initialize on x= 10 and y =20 , and i trigger the animation , x = 100 y =100 the rectangle moves to that position but the animation element stays on x= 10 and y 20 i think because when i trigger it on the 2nd round it triggers the click button and the animation function , but not the animation itself. i noticed this when i put the remove the click event on the button and put button and mousearea with click event inside another rect , but the animation stays on the parent rect , so now i have 1 parent rect and 1 child rect , when i do this , animation works correctly

      only Webassembly have this bugs , other platforms doesn't have this

      jsulmJ 1 Reply Last reply
      0
      • J jhayar

        Okay i think i found the answer on the 2nd bugs

        the behavior on QT Webassembly for animation found only on animation that triggers the movement of x and y

        example i have rectangle ,and have a button on it, let say the button has click event that triggers the animation , i don't know if i am correct but base on my observation , when a rectangle { has animation set here } move either x and y , rectangle moves but the animation element stays in its initial position . let say rectangle initialize on x= 10 and y =20 , and i trigger the animation , x = 100 y =100 the rectangle moves to that position but the animation element stays on x= 10 and y 20 i think because when i trigger it on the 2nd round it triggers the click button and the animation function , but not the animation itself. i noticed this when i put the remove the click event on the button and put button and mousearea with click event inside another rect , but the animation stays on the parent rect , so now i have 1 parent rect and 1 child rect , when i do this , animation works correctly

        only Webassembly have this bugs , other platforms doesn't have this

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @jhayar If you want to report a bug use the Qt bug tracker: https://bugreports.qt.io/secure/Dashboard.jspa

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved