Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Don't work AnimationGroup (QSequentialAnimationGroup, QParallelAnimationGroup)
Forum Updated to NodeBB v4.3 + New Features

Don't work AnimationGroup (QSequentialAnimationGroup, QParallelAnimationGroup)

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 2.3k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    beqa
    wrote on last edited by A Former User
    #1

    I am learning from a book. I do single animation, but in group don't work.
    QSequentialAnimationGroup *group = new QSequentialAnimationGroup;
    trow me one error:
    QSequentialAnimationGroup : no appropriate default constructor available
    and QParallelAnimationGroup *group = new QParallelAnimationGroup; has 3 errors

    1. QParallelAnimationGroup: undeclared identifier
    2. group: undeclared identifier
      3.syntax error: identifier "QParallelAnimationGroup"
    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      looks like you are just missing a #include <QParallelAnimationGroup>

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      B 1 Reply Last reply
      2
      • VRoninV VRonin

        looks like you are just missing a #include <QParallelAnimationGroup>

        B Offline
        B Offline
        beqa
        wrote on last edited by
        #3

        @VRonin said in don't work AnimationGroup (QSequentialAnimationGroup,QParallelAnimationGroup):

        yes it works. thank you

        1 Reply Last reply
        0
        • B Offline
          B Offline
          beqa
          wrote on last edited by
          #4

          but it is bad,that Sequential animation need other #include <QSequentialAnimationGroup> library

          mrjjM 1 Reply Last reply
          0
          • B beqa

            but it is bad,that Sequential animation need other #include <QSequentialAnimationGroup> library

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #5

            @beqa
            Hi can I ask Why is that bad?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              beqa
              wrote on last edited by
              #6

              Hi
              In my opinion, it is less convenient to write 3 libraries, when you want animation

              1 Reply Last reply
              0
              • VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by
                #7

                you can use #include <QtGui> and forget about the rest but you are just dumping a lot of useless stuff on your compiler.

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  beqa
                  wrote on last edited by
                  #8

                  yes, but at first i taught in QPropertyAnimation library would has all this features ( Why should not be? ), nor in my book read to need another library :D

                  mrjjM 1 Reply Last reply
                  0
                  • B beqa

                    yes, but at first i taught in QPropertyAnimation library would has all this features ( Why should not be? ), nor in my book read to need another library :D

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @beqa
                    Well most likely it has later been split to own files / classes later.
                    It's best not to have tons of bundles as then big projects will suffer a lot if everything includes
                    heaps of extra classes.

                    1 Reply Last reply
                    2
                    • B Offline
                      B Offline
                      beqa
                      wrote on last edited by
                      #10

                      @mrjj
                      yes you are right, thanks

                      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