Results 1 to 3 of 3

Thread: How to properly design a settings dialog?

  1. #1
    Join Date
    Mar 2012
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to properly design a settings dialog?

    Hi,

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



    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

  2. #2
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to properly design a settings dialog?

    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.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to properly design a settings dialog?

    As poporacer says, QStackedWidget as demonstrated in the Config Dialog Example

Similar Threads

  1. How to close (exit) a dialog properly
    By cooper in forum Newbie
    Replies: 6
    Last Post: 9th March 2011, 19:19
  2. Dialog design and maintaining square widgets.
    By Gopala Krishna in forum Qt Tools
    Replies: 8
    Last Post: 16th June 2009, 13:32
  3. [Eclipse/Integration] Project Settings dialog problems
    By BrainB0ne in forum Installation and Deployment
    Replies: 0
    Last Post: 23rd January 2008, 15:52
  4. Dialog and code design issue
    By Gopala Krishna in forum Qt Programming
    Replies: 1
    Last Post: 24th September 2006, 17:54
  5. Replies: 3
    Last Post: 31st March 2006, 18:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.