Results 1 to 1 of 1

Thread: 2 QML windows with continuous animation not rendering on IMX8 as expected

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2021
    Posts
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default 2 QML windows with continuous animation not rendering on IMX8 as expected

    I have a QML application where in I have two windows. I have an image with continuous animation on each window. The expected result is to have two windows with an image rotating 360 degree continuously. The result is as expected on Desktop. But on IMX8, I am able to see two windows with an image without rotation animation. My code is as shown below:

    main.qml
    Qt Code:
    1. import QtQuick 2.12
    2. import QtQuick.Window 2.12
    3.  
    4. Window {
    5. id: root
    6. width: 640
    7. height: 480
    8. visible: true
    9. title: qsTr("Hello World")
    10.  
    11. AnimationWindow {}
    12.  
    13. Window{
    14. id: child
    15.  
    16. width: root.width/2
    17. height: root.height/2
    18. visible: true
    19.  
    20. AnimationWindow{}
    21. }
    22. }
    To copy to clipboard, switch view to plain text mode 


    AnimationWindow.qml

    Qt Code:
    1. import QtQuick 2.0
    2.  
    3. Item {
    4. property bool running: false
    5.  
    6. Rectangle {
    7. height: root.height
    8. width: root.width
    9. anchors.centerIn: root
    10.  
    11. Image {
    12. id: bg
    13. source: "qrc:/Images/FaultAndWarningStop.png"
    14. height: parent.height
    15. width: parent.width
    16. fillMode: Image.PreserveAspectFit
    17.  
    18. RotationAnimation on rotation{
    19. from: 0
    20. to: 360
    21. duration: 3000
    22. running: root.running
    23. loops: Animation.Infinite
    24. }
    25. }
    26.  
    27. MouseArea{
    28. anchors.fill: bg
    29. onClicked: root.running = true
    30. }
    31. }
    32. }
    To copy to clipboard, switch view to plain text mode 

    The output seen on IMX8 is just 2 static images on each window rather than with rotation. Is there any issue with QQuickWindow continuously updating on IMX8?

    Thanks in advance!
    Last edited by d_stranz; 30th August 2021 at 19:39. Reason: missing [code] tags

Similar Threads

  1. Issue with rendering fonts in windows
    By ejoshva in forum Newbie
    Replies: 3
    Last Post: 12th August 2015, 11:29
  2. Rendering to 4 different windows
    By bavarianbasti in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2013, 12:51
  3. Problems rendering small border-image in Windows
    By droneone in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2013, 17:05
  4. Painting on top of real-time rendering windows
    By haji in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2011, 22:02
  5. QMovie supports no animation formats (PyQt on Windows)
    By jmeyer in forum Qt Programming
    Replies: 3
    Last Post: 5th May 2009, 09:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.