Sorry for digging out this ancient threat, but I have the exact same problem. Any solution by now?

I can prevent expansion of the second toolbar by calling
Qt Code:
  1. secondToolbar->layout()->setSizeConstraint(QLayout::SetFixedSize);
To copy to clipboard, switch view to plain text mode 
but the same approach won't help expand the first toolbar with either constraint. Plus, this will fix both width and height, which is not really what you want.

Thanks for your consideration.