Friday, July 5, 2013

Quick rant about GUI layout

Just a quick rant about GUI builders and layout managers.  While experimenting with Qt and Qt Creator I'm reminded of why layout can be such a chore:

  1. You picture in your mind roughly what you want
  2. Then you think a moment and try to choose the root layout manager. (Qt gives you four options)
  3. Then you start adding your widgets
  4. Then you realize you need to nest another layout manager
  5. You do that and continue adding widgets
  6. Then you realize that you needed to insert a layout manager higher in the hierarchy
  7. All your novice attempts to drag-n-drop or cut-n-paste in a new layout manager fail
  8. So you delete everything and start over
It's not just Qt Creator.  I've experienced this phenomenon with Java GUI builders too.  From this I see two truths:
  • The mix-n-match-layout-managers model assumes the designer knows exactly how they want their GUI to look and has thought out which layout managers will be needed.  Ha!
  • A good GUI builder needs to focus on evolving your GUI, not on building your GUI once.  Change and refactoring are the average case.

No comments:

Post a Comment