Dear All,
I have also run the another test code with same but minimized functionality,but still
it is having the problem,the same as shown above.
when it comes into :
void widget::MenuEvent(int index)
{
}
The instruction i am writing for setting the index ,MenuStack.setCurrentIndex(n) ;is not taking any effect.
what can be the related issue with this? Dear in my organisation it is very difficult to post the module code i am working. i can only explain the flow:
* 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.




Reply With Quote
Bookmarks