I'm having trouble with QT4 taking several seconds to initially layout and display a dialog box I have created which has a hierarchy of widgets / layouts. I have attached pictures of a couple of tabs from this dialog for clarity here:




The structure is like this

Qt Code:
  1. QWidget (there is more than one of these tabs, as shown in the pictures)
  2. QVBoxLayout (the parts inside here vary)
  3. QWidget (same structure as previous)
  4. QWidget (same structure as previous)
To copy to clipboard, switch view to plain text mode 

Obviously, this is a little complex, but it allows the underlying hierarchical objects to represent themselves simply and independently. The layout manager must be going though some sort of layout oscillations to take so long. Is this normal? Can anyone suggest a structural change that will avoid this? Would a heirarchy of QGridLayouts be more efficient? Or perhaps some layout constraints? How can I debug this layout problem in a manageable way with so many objects?

Thanks,

Colby