[Qt-interest] QDialogButtonBox in a dialog, accepted events doesn't close the dialog.

Giancarlo Amati ilferraresebono at hotmail.it
Wed Apr 29 16:30:42 CEST 2009


Hello everybody,

I have ha dialog window created using QDesigner. now, my Dialog has a DialogButtonBox widget in it emits the Accpeted and Rejected signals.
now, I created my own Class CDialog, derived from the Dialog and mapped all the events with the proper handlers.

When I need my CDialog show up I do this: 
CRBCreateDlg rbdlg;
rbdlg.setModal(true);
ret = rbdlg.exec();


so I expect that when I'll press OK I'll run my accepted handler funciton and close the dialog. But unfortunately it deosn'thappen, My dialog window keeps staying on in foregroudn. How? and why?
what's wrong with my code? should't I mappe the accepted event with my own handler?

Kind regards.
Giancarlo

_________________________________________________________________
Quante ne sai? Scoprilo con CrossWire!
http://clk.atdmt.com/GBL/go/140630367/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090429/494f5855/attachment.html 


More information about the Qt-interest-old mailing list