[Qt-interest] how to stop slideshow.

Avishek_Sharma Avishek_Sharma at satyam.com
Fri Feb 13 10:27:09 CET 2009


Hi everyone,
 sorry,forgot to add the code piece and give some details on what I am doing.
I am working on a photo gallery which was developed on Qt 3.3/Linux.
The slideshow feature is working but, there's no way to exit it once you click the 'slideshow' button.I want that when i click the slideshow button the second time,the slideshow should stop.

Here's the code for slideshow:

pic_dis::slideshow()
{
 pic_dis::next_pic();
 QTimer *timer = new QTimer(this);
 connect( timer, SIGNAL(timeout()), SLOT(slideshow()) );
 timer->start( 950, TRUE );
}

**next_pic is a slot which is called when the 'Next Photo>>' button is clicked.I am calling that slot from the slideshow() slot.

Hope it gives you some idea on what i am doing.
Thanks in advance for any help.

Avi
________________________________________
From: Ankit Agarwal [ankit17.ag at gmail.com]
Sent: Friday, February 13, 2009 2:46 PM
To: Avishek_Sharma
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] how to stop slideshow.

Hi Avishek,
It is really tough to guess the way you have implemented the first feature. Can you please give a little more detail. Some piece of code shall be really helpful.

On Fri, Feb 13, 2009 at 2:38 PM, Avishek_Sharma <Avishek_Sharma at satyam.com<mailto:Avishek_Sharma at satyam.com>> wrote:
Hi everyone,
 I want to implement this-
When I click the 'slideshow 'pushbutton the first time, slideshow should start.
When I click the 'slideshow 'button the second time, slideshow  should stop.

For now,slideshow is working fine.I need to implement the second feature which I mentioned above
Is there some simple way of doing it?
Please advice.
thanks for any help.
Avi

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com<mailto:Qt-interest at trolltech.com>
http://lists.trolltech.com/mailman/listinfo/qt-interest



--
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com<mailto:ankit_agarwal at vegayan.com>
Blog : http://ankit17.wordpress.com

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.




More information about the Qt-interest-old mailing list