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. ScaleAnimator does not work.

ScaleAnimator does not work.

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

    I have a simple code:

    Rectangle {
            id: rect
            width: 100; height: 100
            color: "red"
    
            ParallelAnimation {
                running: true
                NumberAnimation { target: rect; property: "x"; to: 500; duration: 1000 }
                NumberAnimation { target: rect; property: "y"; to: 500; duration: 1000 }
                RotationAnimation { target: rect; from: 0; to: 360; duration: 1000 }
                ScaleAnimator { target: rect; from: 0; to: 10; duration: 1000 }
            }
        }
    

    The code works on one machine, but when I transfer the code to another computer, with the same QT version 5.12.3, the ScaleAnimator does not work.
    NumberAnimations and RotationsAnimations work. When they are finished, the size immediately jumps from 100x100 to 1000x1000 without animation.
    What could be a reason for ScaleAnimator to not work?

    Can it be because I do not have a GPU?

    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