PDA

View Full Version : How to properly design a settings dialog?



Deusdies
26th March 2012, 22:44
Hi,

I'm writing a web scraper app and am currently designing a settings dialog. This is what it will look like:

http://i.imgur.com/doD9X.png

As you can see, there are several buttons at the top and clicking on each one brings the relevant settings page. Now how do I accomplish this? I mean, I've managed to do it by overlapping all the setting pages (having them at the same position), and then calling the .hide() (or .show()) function when the user clicks a button. I was just wondering if there was a better way to go about this.

Oh by the way, I'm using PySide (Python's Qt bindings).

Thanks
Deusdies

poporacer
26th March 2012, 23:09
One option would be to use a stacked widget and then have your buttons navigate to the correct page of the stacked widget. A lot cleaner this way and you have access to all your data from the one element.

ChrisW67
26th March 2012, 23:26
As poporacer says, QStackedWidget as demonstrated in the Config Dialog Example