[Qt-interest] disabling existed menu action.

John McClurkin jwm at nei.nih.gov
Sat Oct 3 16:21:46 CEST 2009


Yuvaraj R wrote:
> Hi All
> 
> I have menu..which is having following options..
> 
>  for tab 1
> 
> 
> 1) call
> 2)Im
> 3)delete
> 4) Block..
> menu->exe();
> 
> for tab1 it is working fine.same menu i want to display for tab 2 also
> 
> with only two options of above
> 
> 1) call
> 
> 2) im
> 
> I did..
> 
> bolck->setEnabled(false);
> delete->setEnabled(false);
> menu->exe();
> 
> But while executing the menu in tab 2 ,application is crashing..
> 
> 
> 
> 
> Thanks
> 
> Yuvaraj R
Run your application in a debugger and get a backtrace. That will give 
an answer much faster than asking the list. Most probably either or both 
pointers are invalid in Menu 2.



More information about the Qt-interest-old mailing list