Results 1 to 3 of 3

Thread: Subclassing QPropertyAnimation update/setCurrentTime wont update currentValue

  1. #1
    Join Date
    Jun 2010
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Subclassing QPropertyAnimation update/setCurrentTime wont update currentValue

    Something very weird is happening. Normally I used the method setCurrentTime and I would get the currentValue of a referenced QPropertyAnimation automatically updated.

    Now, I have subclassed the QPropertyAnimation class to do some custom time management but neither the updateCurrentTime or setCurrentTime are updating the currentValue of the animation. Don't really know what I'm missing...

    Would I need to emit some special signal or something?

    Help is much appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Subclassing QPropertyAnimation update/setCurrentTime wont update currentValue

    Can you post the code?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2010
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Subclassing QPropertyAnimation update/setCurrentTime wont update currentValue

    So this was a really wasted post. The reason it was not changing is because I had some logic wrong (typo), In a really fast copy paste action I was asigning the startValue equal to the endValue. Sorry for that.

Similar Threads

  1. how to use update()?
    By zgulser in forum Qt Programming
    Replies: 0
    Last Post: 6th February 2009, 09:45
  2. Is Update() the right way?
    By td in forum Newbie
    Replies: 1
    Last Post: 5th December 2008, 14:54
  3. update()
    By JeanC in forum Qt Programming
    Replies: 4
    Last Post: 11th February 2008, 16:12
  4. how to update qtable
    By anu0050 in forum Qt Programming
    Replies: 2
    Last Post: 2nd May 2007, 12:56
  5. Update a row
    By dragon in forum Newbie
    Replies: 9
    Last Post: 17th January 2006, 17:11

Tags for this Thread

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.