PDA

View Full Version : Making a reflection of a picture



desch
16th February 2008, 18:30
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 :p

Thanks to all ..

David

marcel
16th February 2008, 19:15
See the cover browser example on labs.trolltech.com.
You can checkout the project from: svn://labs.trolltech.com/svn/graphics/dojo/browser.

desch
17th February 2008, 18:38
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