PDA

View Full Version : How to move next page in stackedwidget ?



npc
10th January 2007, 14:14
Hi,

Which method should I use to call the next page in a stackedwidget.

Whenever the user clicked the pushbutton the widget shoud show the next page.
how can I accomplish this ?

Gopala Krishna
10th January 2007, 14:24
int nextIndex = stackWidget->currentIndex() + 1;
if( nextIndex < stackWidget->count())
stackWidget->setCurrentIndex(nextIndex);

But there is no direct slot to call nextWidget or something like that :(