Help on QStackedWidget
Posted
by Surjya Narayana Padhi
on Stack Overflow
See other posts from Stack Overflow
or by Surjya Narayana Padhi
Published on 2010-04-12T04:30:42Z
Indexed on
2010/04/12
4:33 UTC
Read the original article
Hit count: 399
Hi Geeks,
I am using a QStackedWidget on my mainWindow. The firstPageWidget on stackedWidget contains 3 buttons. Now If I will press the first button on firstPage, I want the stackedWidget show the 2nd Page widget. Following are the details
I tried to connect like this in my mainwindow
connect(firstPageWidget->button1,SIGNAL(clicked()),stackWidget,SLOT(setCurrentIndex(int)));
Now I want to know how to pass the value of index number to stackWidget to set currentIndex?
If my question is not much clear please tell me I will explain more.
© Stack Overflow or respective owner