[Qt-interest] Simple dialog question

Phil phillor at telstra.com
Thu Nov 5 18:44:47 CET 2009


On Wed, 4 Nov 2009 07:59:19 am Paul Colby wrote:

Thanks again Paul for you patience.

> If you do indeed want the dialog to be model, then simply set the text
> 
> *before* you execute the dialog, eg:
> > void Configuration::showDialog()
> > {
> >  Configuration configDlg;
> >  label->setText("Text"); // First set the text.
> >  configDlg.exec(); // Then show the dialog.
> > }
> 

I had tried setting the text before and after showing the dialog but evidently 
I hadn't tried "configDlg.label->setText("text")" (as suggested by "Mystical 
Groovy") in version 50 of my project. 

This is also the same reason for the failure of the text alignment. I thought 
the two were related.

So, between the two of you, two long-standing problems have been solved 
at last. Thank you.

-- 
Regards,
Phil



More information about the Qt-interest-old mailing list