'What can be the causes of uneven widget dimension if the QsizeHint for 2 widgets returns the same values

I have 2 widget setup in a VBox layout in pyqt GUI. However one of the 2 widgets is clearly bigger in height than the other. However, when I print the sizeHints for the 2 widgets the return value provided by the widgets is the same. What sort of factors could be the cause of this and how can I make sure both the widgets have the same height.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source