PDA

View Full Version : Using a frame for different functions



anafor2004
29th January 2008, 12:47
Hi all
I want to ask you some thing about my new project. I am preparing a form and There are two frames and the first one contains 7 buttons the second one is empty .On the first frame there are 7 pushbuttons , and they are sliding on the frame if there is a keypress action (Qt::Key_up or Qt::Key_down).it is like a endless loop what i mean is after the 7th button and then first button come back.And the middle button of the slide is active the orthers are passive.The problem is every button has different function, and i have an empty frame .This empty frame is used for these 7 different functions how may i do this?
To make it clear, I want to tell an instance,the first button is showing a picture, the second one drawing a circle on a label, the third one user inputs some informations.. etc.
Thank you very much for your help.

wysota
29th January 2008, 13:45
Use QSignalMapper or connect each button to a different slot.