Results 1 to 3 of 3

Thread: Making a reflection of a picture

  1. #1
    Join Date
    Jul 2006
    Posts
    37
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Making a reflection of a picture

    Hello Guys, and Girls,

    So I try to make a reflect like the picture in attachment.

    I would like to known, if it's possible or not; and which way

    This is the way I work for the moment:
    I make two Qlabel, set a pixmap on the first and the same pixmap on second

    For the Qlabel 2, I subclass paintEvent and make a rotate

    At least I try to apply a linear gradient inside the label 2 with transparent to opaque

    That's what I plan to do !!

    So now if it seems not possible , or already discussed on another thread tell me
    I will earn time to do something else

    Thanks to all ..

    David
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Making a reflection of a picture

    See the cover browser example on labs.trolltech.com.
    You can checkout the project from: svn://labs.trolltech.com/svn/graphics/dojo/browser.

  3. The following user says thank you to marcel for this useful post:

    desch (17th February 2008)

  4. #3
    Join Date
    Jul 2006
    Posts
    37
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Making a reflection of a picture

    Excellent !

    I've checkouted the code from :http://labs.trolltech.com/page/Graphics/Examples

    And I've tested some examples like Reflection and Browser

    Just an Add on for newbie like me:

    To download files from labs, you have to use svn (Subversion) (something I don't use, especially in Windows)

    and to checkout files from the adress using the tool Subversion
    like : svn://labs.trolltech.com/svn/graphics/dojo/reflection

    that's all

    Thanks Marcel, for this useful link

    David

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.