0

I have a dialog box with two widgets (which are actually vertical layouts themselves), and a spacer in the middle, arranged as a horizontal layout, like so (layout "lines" are red):

enter image description here

I also have a global stylesheet that's loaded and parsed at runtime. The trouble is, this stylesheet changes the height of some widgets in the left layout, but the main layout doesn't seem to take that into consideration, and so when the application is running it looks like this:

enter image description here

My understanding is that the main layout is resized to compensate for the extra space needed to accommodate the widgets in the left layout, but the right layout is then not resized to fit that extra space in its parent, which looks ugly. I'm using the default size constraint in all layouts.

What can I do to force the right layout to resize itself?

user4520
  • 3,401
  • 1
  • 27
  • 50
  • That's the most curious "C++" question I have ever seen. – Christian Hackl Nov 07 '15 at 11:30
  • @ChristianHackl Well, I just wanted to specify that I'm using C++, not Python, in this application if a potential answer were to include some code I could use. Though you're probably right :P – user4520 Nov 07 '15 at 11:33
  • It would be useful to see some code how that dialog is created and example of qss that is used. – Orest Hera Nov 08 '15 at 20:31

0 Answers0