Results 1 to 7 of 7

Thread: QEffects.cpp usage.....

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question QEffects.cpp usage.....

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QEffects.cpp usage.....

    What this files to represent
    a life without programming is like an empty bottle

  3. #3

    Question Re: QEffects.cpp usage.....

    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.....

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QEffects.cpp usage.....

    It is possible to use them, right. Eg. something like this:
    Qt Code:
    1. #include <Qt/private/qeffects_p.h>
    2.  
    3. qFadeEffect(fadeWidget, 300);
    4. qScrollEffect(scrollWidget, 300);
    To copy to clipboard, switch view to plain text mode 

    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

  5. #5
    Join Date
    Oct 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: QEffects.cpp usage.....

    Quote Originally Posted by jpn View Post
    It is possible to use them, right. Eg. something like this:
    Qt Code:
    1. #include <Qt/private/qeffects_p.h>
    2.  
    3. qFadeEffect(fadeWidget, 300);
    4. qScrollEffect(scrollWidget, 300);
    To copy to clipboard, switch view to plain text mode 
    I tried to include it , but it compile error with message " no such file".

  6. #6
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QEffects.cpp usage.....

    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
    Last edited by MarekR22; 11th January 2011 at 11:08.

  7. #7
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QEffects.cpp usage.....

    I tried to include it , but it compile error with message " no such file".
    It means your include path is not set properly.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Bad memory usage on QWebView I think
    By jiturra in forum Qt Programming
    Replies: 15
    Last Post: 21st January 2014, 20:35
  2. Reducing CPU Usage
    By Kapil in forum Qt Programming
    Replies: 8
    Last Post: 3rd April 2011, 14:43
  3. rotate operation and cpu usage
    By ersin.ozkan in forum Qt Programming
    Replies: 2
    Last Post: 30th December 2008, 06:42
  4. QThread usage and exec()
    By smahnken in forum Qt Programming
    Replies: 10
    Last Post: 24th August 2008, 18:13
  5. CPU and Memory Usage
    By philwinder in forum Qt Programming
    Replies: 16
    Last Post: 17th May 2008, 22:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.