Did it come so far? Have you check if the slot is actually called?
No that is not enough, because of that decription it should work. And you should not post your project, you should strip it down, that only the problem is left.* create the main widget,on which there are forur buttons,each for one menu page
* create anohter four widget ,which will be my menu pages with no parent
*connect mapped(int) with the MenuEvent(int) slot.
*add all four menu page into QVBoxLayout object
* set object layout
*And finally Handle the event and do setCurrentIndex( int).
This is what i have done. I think what i have shown and discussed is enough.
How did you set the signal mapper of?






Reply With Quote
Bookmarks