PDA

View Full Version : QT4 how to get the special effect of switching pictures



felix_tang
9th March 2009, 06:41
Hello guys, I am using qt4 to do a program that shows a set of images. It uses the classes that include QImage、QLabel and QPixmap.

Now it has a problem, when shows the next image, the next image appears on the screen at once, the effect is not fluent.

Anyone can support a way to let the previous image fadeout gradually and then the next image appears.

aamer4yu
9th March 2009, 07:15
You can create your own effects, Just use QTimeLine or QTimer, and slowly fade out the image you want to close, and fade in the next image .
You can also search for animation alogos like dissolve, fade, move, etc.. and use it .

felix_tang
9th March 2009, 08:48
You can create your own effects, Just use QTimeLine or QTimer, and slowly fade out the image you want to close, and fade in the next image .
You can also search for animation alogos like dissolve, fade, move, etc.. and use it .

Thanks for your help , but I have used QTimer to show images in turn and I want to know exactly how to slowly fade out the image I want to close.

felix_tang
10th March 2009, 07:41
Is there anyone to tell me the specific solution?