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

Giancarlo Amati ilferraresebono at hotmail.it
Wed Apr 29 19:38:01 CEST 2009


Is it possible to set the ROle from QDesigner?

Thanks
Giancarlo

> From: neel.basu.z at gmail.com
> To: qt-interest at trolltech.com
> Date: Wed, 29 Apr 2009 20:16:02 +0530
> Subject: Re: [Qt-interest] QDialogButtonBox in a dialog,	accepted events doesn't close the dialog.
> 
> On Wednesday 29 April 2009 20:00:42 Giancarlo Amati wrote:
> > 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?
> accepted() signal will be emitted only when the Button clicked has AcceptRole 
> or YesRole
> By default the Standard Ok Button have AcceptRole
> I think You have use a button with some other Role and setText("OK");
> 
> On the designer you will see StandardButtons
> Check Proper Buttons from there.
> 
> Neel
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

_________________________________________________________________
È arrivato il nuovo Messenger! Provalo subito
http://clk.atdmt.com/GBL/go/140630370/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090429/3cf09a92/attachment.html 


More information about the Qt-interest-old mailing list