February 13, 2012

Deleted Member # 1d173 Deleted Member # 1d173
Lab Rat
41 posts

how to solve this error: ‘QPropertyAnimation’ was not declared in this scope

 

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.

8 replies

February 13, 2012

amleto amleto
Lab Rat
5 posts

#include <QPropertyAnimation>

??

February 13, 2012

Deleted Member # 1d173 Deleted Member # 1d173
Lab Rat
41 posts

yes

February 13, 2012

Deleted Member # 1d173 Deleted Member # 1d173
Lab Rat
41 posts

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

February 13, 2012

Volker Volker
Robot Herder
5428 posts

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

February 13, 2012

Deleted Member # 1d173 Deleted Member # 1d173
Lab Rat
41 posts

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

February 13, 2012

Volker Volker
Robot Herder
5428 posts

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.

February 13, 2012

Deleted Member # 1d173 Deleted Member # 1d173
Lab Rat
41 posts

Thank u for ur reply.

February 20, 2012

Deleted Member # 1d173 Deleted Member # 1d173
Lab Rat
41 posts

is there anybody to help from this problem

 
  ‹‹ Firefox Browser stuck when droping link to QMainWindow      How can we handle large files in qt? ››

You must log in to post a reply. Not a member yet? Register here!