Quote Originally Posted by ChrisW67 View Post
Is your simulator relinquishing control to the Qt event loop quickly, or taking a long time without processing events?
I don't think that's the problem. I tried it with a push button instead of a QAction menu item, and that one disables and grays out fine. Every other way of doing it has no problem, just with the QAction item.

Anyway, for the time being, I've replaced it with a button. It doesn't need to be in the menu for my application, but I'm still curious to figure out the problem.

Quote Originally Posted by d_stranz View Post
In the code you pasted, you show two different GUI objects, "button_send" (line 1) and "actionConnect" (lines 2 - 4), and the code never disables the "button_send" action. Is this a typo? If not, that's probably the reason why you can still execute the command.
The first line was actually just included in the code I pasted to show an example of something that did work. Lines 2-4 are the important ones. When I disable button_send later it disables fine.