PDA

View Full Version : QEffects.cpp usage.....



Naveen
22nd March 2006, 08:31
Could u guys help in using qEffects.cpp and qEffect_p.h files in my sample application.....

Or
Could u give me a brief on the functionality and usage of these files in my sample appllication.....

Thanks in Advance
Naveen

zlatko
22nd March 2006, 08:41
What this files to represent :confused:

Naveen
22nd March 2006, 09:18
These are the files I found in Qt Source code....

qeffects.cpp and qeffects_p.h are found in the "gui" folder of the "src"

I want to use these files in my application ....
As far as the information i have on these files is that these file are used to create some fading effect in our application...but I'm not able to understand how to used them in my application...

Thanks
Naveen.....

jpn
22nd March 2006, 11:23
It is possible to use them, right. Eg. something like this:


#include <Qt/private/qeffects_p.h>

qFadeEffect(fadeWidget, 300);
qScrollEffect(scrollWidget, 300);


But as the header file says, it is not intended or suggested to use them:


//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of qeffects.cpp, qcombobox.cpp, qpopupmenu.cpp and qtooltip.cpp.
// This header file may change from version to version without notice,
// or even be removed.
//
// We mean it.
//

Of course, you could "adapt" some hints from their solutions and implement something similar by yourself ;)

kongkong163
11th January 2011, 05:25
It is possible to use them, right. Eg. something like this:


#include <Qt/private/qeffects_p.h>

qFadeEffect(fadeWidget, 300);
qScrollEffect(scrollWidget, 300);

I tried to include it , but it compile error with message " no such file".

MarekR22
11th January 2011, 11:57
suffix "_p.h" means private header! This header is for internal (Qt) use only (to maintain binary compatibility in a future). NEVER ever use that (unless you are modifying Qt code)!
Check Qt documentation about effects. QGraphicsEffect

Check this: QWidget::setGraphicsEffect

high_flyer
11th January 2011, 12:07
I tried to include it , but it compile error with message " no such file".
It means your include path is not set properly.