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. How to solve this error: 'QPropertyAnimation' was not declared in this scope
Forum Updated to NodeBB v4.3 + New Features

How to solve this error: 'QPropertyAnimation' was not declared in this scope

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 3.5k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hi,
    In my program i have added 'QPropertyAnimation' class reference by using #include <QPropertyAnimation>. while running in the gui mode there is no problem with my program.but when i try to cross compile the program i am getting the following error: "'QPropertyAnimation' was not declared in this scope". please anybody tell me how to solve this issue.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      amleto
      wrote on last edited by
      #2

      #include <QPropertyAnimation>

      ??

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        yes

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          i have added both the <QParallelAnimationGroup> and <QPropertyAnimation>

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Can you elaborate "while running in the gui mode" and "when i try to cross compile the program"?

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              Hi,
              when i am trying to run my program in my pc itself it is working fine. but i need to cross compile my program for the arm board. so i am trying to compile my program for the arm board am getting the error "QPropertyAnimation’ was not declared in this scope”. i think
              the thing is need to add the class reference in my .pro file? am i right

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                Ah, ok. You will need all the includes and Qt modules for the ARM platform. The most important thing here is to add the correct include paths. QPropertyAnimation is in QtCore, it should be available though. Unfortunately I don't have experience with cross compiling stuff.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • ? This user is from outside of this forum
                  ? This user is from outside of this forum
                  Guest
                  wrote on last edited by
                  #8

                  Thank u for ur reply.

                  1 Reply Last reply
                  0
                  • ? This user is from outside of this forum
                    ? This user is from outside of this forum
                    Guest
                    wrote on last edited by
                    #9

                    is there anybody to help from this problem

                    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