[SOLVED]Suggestions on implementing a proper settings dialog.
-
wrote on 4 May 2015, 06:56 last edited by ealione 5 May 2015, 06:37
I am at that point in my app development where I want to created a settings/preferences dialog, in order for the user to be able to tweak various parameters.
What I intend to do is after creating the form, have it initialised every time the user presses the 'Settings' option, and deleted when he presses 'accept' or 'cancel'. Any changes he makes will be passed to my main app using signals and slots.
Are there any better ways of doing this, do you have any suggestions from your personal experience, or some other open source code that I could study to learn more?
-
wrote on 4 May 2015, 07:03 last edited by
Hi,
as general rule your idea is correct.
If your dialog is very complex and it needs a lot of resources to load or if you want make it non-modal you can think to keep it in memory and usingshow()
when the user click onSettings
andhide()
when it is accepted or cancelled -
wrote on 4 May 2015, 07:09 last edited by
Hi mcosta,
For the moment its quite simple, but it may well get extended in the future so I will keep it in memory. Thanks for the input.
4/4