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. QAnimationProperty And Nokia N8

QAnimationProperty And Nokia N8

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.0k 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.
  • G Offline
    G Offline
    gaba88
    wrote on last edited by
    #1

    Hello all,

    I want to animate widgets using QAnimationProperty class which is very easy to use. I am trying the following code:

    Code:

    @
    QPropertyAnimation* sampleAnimation = new QPropertyAnimation(myWidget,"geometry");
    sampleAnimation->setDuration(300);
    sampleAnimation->setStartValue(QRect(0,0,width(),height()));
    sampleAnimation->setEndValue(QRect(0-400,0,width(),height()));
    sampleAnimation->setEasingCurve(QEasingCurve::Linear);
    sampleAnimation->start();
    @

    i first tested this on my Nokia X6 it was very fast and was what i needed and then tried on Nokia N8 to my surprise for the later device the animation was very slow and after two three times of continuous usage the animation was not at all working.

    Do i need to do something special for this?? Please help me to understand whats happening wrong??

    Regards,

    [EDIT: code formatting, Volker]

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xsacha
      wrote on last edited by
      #2

      What Qt version is it compiled for and what Qt version are you using on X6 and N8?

      • Sacha
      1 Reply Last reply
      0
      • G Offline
        G Offline
        gaba88
        wrote on last edited by
        #3

        thanks for the reply, i am pretty sure they are the same one as the application has a smart installer and it downloads the binary from the server for the first time(this is for x6).

        For N8 it has pre installed library i.e. 4.6.3 correct me if i am wrong

        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