[Interest] Best Practices returning data from a dialog
alexmalvtk at gmail.com
Thu Aug 23 02:24:35 CEST 2012
It depends on functionality you need and type of your dialog (modal/modeless)
In any case I do not think appropriate time is when dialog is closed.
Check QDialog documentation for example at:
In general for modal dialog you might want to update data when
as reaction on accepted () signal or when exec returns
For modeless dialogs (in general) you might update data as soon it is
changed in the dialog or button Ok/ Apply clicked (again depends on
Common sense is the best practice.
On Wed, Aug 22, 2012 at 3:15 PM, JM <johnmiller at email.it> wrote:
> Hi all,
> What are the best practices to return from a common dialog window?
> At the moment I have already solved with a Slot connected to the closure of the dialog,
> that invokes methods to retreive data. But what are the best practices?
> What are the pros and cons of every solution?
> Interest mailing list
> Interest at qt-project.org
More information about the Interest