[Qt-interest] Is there a QT equivalent to MFC:s on_command_update_ui?

Gabriel Ortiz gor23 at hotmail.com
Tue Dec 15 15:18:22 CET 2009


 

Hi. I'm new to QT with a background in MFC programming. I'm just wondering if there is there a QT equivalent to MFC:s on_command_update_ui? I.e. a way to write a single update handler to handle things like enabling, checking/unchecking menu items etc and that is called automatically by the framework? If not, is there any best practise?

 

I did a lot of MFC programming a few years ago. As I recall it, on_command_update_ui was a quite handy mechanism, although the message routing in MFC is intricate.

 

I've found that it difficult to get it right when you have to manually add calls to "setEnabled" each time the GUI changes state, especially when there are complex state machines with many possible state transitions.

 

 

 

 
 		 	   		  
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091215/3b989e59/attachment.html 


More information about the Qt-interest-old mailing list