Re: Working with OK Button !
Hi,
[...][color=blue]
> All I want is to use the Ok button. I want to implement some code to
> be executed when I press the 'ok'.
> In MFC, I know that OnOk( ) function is invoked by default on
> pressing Ok button[/color]
Which is a very ugly unnormality because if you define some "myFunction"
button, you'll have to use some kind of callback anyway - which is not
pre-defined... Which is just what to do in QT. So there is no predefined
callback for "special" buttons.
[color=blue]
> I am not aware of similar thing ( if any ) in qt4.[/color]
Just the same as with all QT buttons. Write a callback (basically the
same as the "OnOK" function. Here comes the difference: You can give it
any name you like. Doesn't matter. Call it "OnOK" if you want. And: you
have to register the callback!
Check the QT tutorial for buttons. It's really simple, though I've been
using it only once long ago ;-)
Have fun ;-)