[Qt-interest] Stacked Abstracted Widget: how to change the page?
Usman Ajmal
uzmanajmal at gmail.com
Mon Jul 20 20:37:03 CEST 2009
i know there is a slot of setCurrentIndex(int index) for changing the index
of current page but i am getting error while using it.
I write this in my ui_MainWindow.h
QObject::connect(pushButton_next,
SIGNAL(clicked()),stackedWidget,SLOT(setCurrentIndex(1)));
pushButton_next is a push Button, upon which when somebody click the page
with index = 1 should appear.
Object::connect: No such slot QStackedWidget::setCurrentIndex(1)
Object::connect: (sender name: 'pushButton_next')
Object::connect: (receiver name: 'stackedWidget')
How should i use it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090720/dd62fa7f/attachment.html
More information about the Qt-interest-old
mailing list