-2

I want to have two buttons PREVIOUS and NEXT and I would like to have the same window but every time the NEXT button is clicked I want the information to be changed and something new to appear.

How can I do something like this?

tux3
  • 7,171
  • 6
  • 39
  • 51
aB61
  • 17
  • 1
  • 6

2 Answers2

1

You should write 2 slot functions and connect with buttons. For example slotPrevious() and slotNext() and connect them with connect(ui->pushButtonNext, SIGNAL(clicked()), this,SLOT(slotNext()));. And update your information widget with these functions.

utarid
  • 1,642
  • 4
  • 24
  • 38
0

well in order to help what do you want to be changing? Text labels, input fields,buttons?

Please tell what do you want to change to make you a sample...

Armando
  • 309
  • 1
  • 4
  • 10
  • Armando, I want to have a window and some information in it, for example a quiz or a image gallery... Every time I click the push Botton I want the next image to appear ... Is that possible in the same window? – aB61 Apr 16 '15 at 10:10
  • Hi sorry for not replying before....Ive been very busy this days...Well here you go...I made a small sample for you...hope it helps in someway....Let me know if you need anything else [Download File](https://www.dropbox.com/s/nzkztd4jpc55io4/ImageTestingProject.rar?dl=0) – Armando Apr 21 '15 at 07:25