Thank for spending your time reading my code, spirit.
I´ve read about signals and spots but I still haven't found the point. Could you give more clues?? I supose I have to define a slot function to change the page. I´m not sure how.
Thank for spending your time reading my code, spirit.
I´ve read about signals and spots but I still haven't found the point. Could you give more clues?? I supose I have to define a slot function to change the page. I´m not sure how.
you is not careful.
your connection is
it's not correct, because passing real values in connection IS NOT allowed.Qt Code:
To copy to clipboard, switch view to plain text mode
so, your connection must look like
i.e. you should specify SIGNATURE of method.Qt Code:
To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
onÃrico (12th November 2009)
Ok. But now, how do I link that button with the MenuThree?? Do I have to use QSignalMapper??
what is exactly the signature (of a signal or slot)???
Thank you again, spirit!! And sorry for being worse than a headache.
add a slot which changes pages:
should be something like this.Qt Code:
.... .... void MyWidget::changePage() { int nextPage = menus->currentIndex() + 1; if (nextPage >= menus->count()) nextPage = 0; menus->setCurrentIndex(nextPage); } ...To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
onÃrico (12th November 2009)
That wasn´t exactly what I wanted. But it helped me a lot to solve my problem.
Thank so much, spirit!!!
Bookmarks