title: How to update a QLayout and get the new dimensions before returning?
body: <p>This is driving me nuts.  I have a custom menu class that, when set visible, shows a list of items located in a particular folder.  When a hardware button is pressed, my application gets the latest list of items, populates the menu with them, and returns.</p>
  
  <p>The menu displaying these items uses a QListWidget filled with custom widgets.  Each of the widgets contains one or more QLabels in a horizontal layout, and is created at the time the menu is shown.  In order to adjust the text displayed based on the menu width available, I need to get the size of the QLabel AFTER it has been resized according to the layout, but before the menu becomes visible to the user.  The problem is, my layout does not get updated until all of the functions constructing my list return.</p>
  
  <p>I have tried QApplication::ProcessEvents() and the layout update functions, but none of them have updated the values of my QLabels before returning.  I can set a QTimer when the button is initially pressed, and have it show the menu, update the items, and stop itself, but that seems like a terrible solution.</p>
  
  <p>Any help would really be appreciated!  I've spent most of a day on this.</p>
  
  <p>Marlon </p>