Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. why the property that i defined in type image don't work in animation type?

why the property that i defined in type image don't work in animation type?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 516 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.
  • stackprogramerS Offline
    stackprogramerS Offline
    stackprogramer
    wrote on last edited by stackprogramer
    #1

    why the varrible property when i set to fg don't work?but when i set to value 100 it work!!!!!!

            
         Image {
    
             property int fg: 50;
    
    
              source: "Image-Core-Render/image.jpg"
             y: (menuspiral.height)/2
              width: 100; height: 100
    
              NumberAnimation on x {
                  duration:2000
                  loops: Animation.Infinite
                  running:true
                  from: 0; to: fg
              }
          }
    
    
    1 Reply Last reply
    0
    • stackprogramerS Offline
      stackprogramerS Offline
      stackprogramer
      wrote on last edited by stackprogramer
      #2

      finally i define too property int fg in this type NumberAnimation
      now it works...

      
                NumberAnimation on x {
                    property int fg
                    duration:2000
                    loops: Animation.Infinite
                    running:true
                    from: 0; to: fg
                }
      
      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