[Qt-interest] 'Back' button not working properly.

Ravi_Kalepalli Ravi_Kalepalli at Satyam.com
Thu Apr 9 08:11:49 CEST 2009


Hi everyone,
    I am having problems implementing the functionality of a 'Back' button.I am working on a Media gallery using Qt 4.4.3.
When  the gallery is opened,we see the first 10 pictures present in it(The 10 pictures/thumbnails are set on 10 QPushButtons).On clicking any of the 10 pics ,it gets enlarged (set on top of a QLabel).
Now, once the enlarged picture  is shown,I am thinking of giving a 'Back'button  so that the user can go back to the initial view showing the 10 thumbnails on the 10 pushbuttons.
I created a button 'back' and connected it to a slot 'back2gallery()' inside which I called the constructor again.
My constructor's name is 'Mediagallery()'.So, I wrote-
void Mediagallery::back2gallery()
    {
      Mediagallery();
    }

But,it's not working.I was thinking that it was simple...but,guess I did it wrong.
Please advice on how to get past this issue.
Thank you.
Ravi

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