I inserted a QLabelwith a small sentence a QLineEditand a QPushButtonin that order in QVBoxLayout. My main window is 70% of the user's desktop.
My problem is that my shortcut expands to almost 80% of the height of the parent window, QLineEditand `QButton \ are compressed at the bottom.
I figured out a way to solve this problem: I added more shortcuts without content, but this cannot be a golden solution. What can I do?
I also tried QFormLayout, but it does not fit my needs. I like the widgets are in vertical order. I tried many ways with QSizePolicy, but it did not work.
source
share