Angus Leeming wrote:

> If you can do that in the .ui file, then great. However, QDialogPlus will
> need to know 'form_' which will be different for each and every Dialog, so
> you'll need
> 
> template <typename Parent>
> class QDialogPlus : QDialog {
> QDialogPlus(Parent * form) : form_(form) {}
> void reject() { form_->slotWMHide(); QDialog::reject(); }
> Parent * form_;
> };
> 
> I don't think that this is any better/may well be impossible to encode.
> Have a go.

Ugh. You convinced me (I understand near to nothing about qt). Alternatively
we can also solve it only for the ones that really need it.
 
> I'll leave this in your capable hands now.

I feel more like handless ;-)

PS: It's dirty work and I don't like it. But if you don't do it I'll have a
shoot tonight or tomorrow (no much time now).

Alfredo


Reply via email to