Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6907

Animations and States example in animation-overview uses old API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.6.1
    • 4.6.0
    • Documentation
    • None
    • 553e0cafa578ece64c07afa11571eca4c7b9444c

    Description

      The last example in http://doc.trolltech.com/4.6-snapshot/animation-overview.html does not work. According to http://labs.trolltech.com/blogs/2009/07/23/qstatemachines-a-state-too/ , the fix is:

      Replace "machine->rootState()" with "machine"

      As a side note, maybe using addDefaultAnimation would make this example slightly cleaner? I.e, use:

      machine->addDefaultAnimation(new QPropertyAnimation(button, "geometry"));

      instead of

      transition1->addAnimation(new QPropertyAnimation(button, "geometry"));
      transition2->addAnimation(new QPropertyAnimation(button, "geometry"));

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            gbk Martin Smith (Qt)
            bwashed Kjartan H
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes