QSpacerItem with maximum and minimum
Unsolved
General and Desktop
-
I understand how to use QSpacerItem with QSizePolicy::Maximum to prevent the parent layout getting blank space beyond that amount, and likewise QSizePolicy::Minimum to ensure at least that blank space, but how can I do both? I.e., prefer 5 pixels of blank space at the default window size but allow the spacer to stretch to 25 pixels (but not more)?