Qt-interest Archive, March 2002
destroy a dialog in init()?
Message 1 in thread
- Subject: destroy a dialog in init()?
- From: Jeff Shipman <shippy@xxxxxxx>
- Date: Mon, 04 Mar 2002 19:10:52 -0700
- Organization: New Mexico Institute of Mining and Technology
- To: Qt Mailing List <qt-interest@xxxxxxxxxxxxx>
I've got a dialog which needs to make a check
to make sure a certain file exists before showing
the dialog. I do this check inside init(). How
can I prevent the dialog from being shown from within
init() if my check fails? I've tried close(), which
doesn't work, and I've tried destroy(), which gives
numerious X errors.
Thanks in advance,
--
[ signature omitted ]
Message 2 in thread
John F. Dumas wrote:
> On Mon, 4 Mar 2002, Jeff Shipman wrote:
>
> It may be "too late" to do it in init(). I'd be tempted to override
> show() [for a modeless dialog] or exec() [for a modal one] and do it
> that way as in ...
>
That worked great! Thanks for your
advice.
--
[ signature omitted ]