Ratio margin setting according to window size
Unsolved
General and Desktop
-
The parent window size is fixed and the margin or padding value is hard-coded depending on the fixed size, but the size of the parent window may change. I want to find the ratio of the margin or padding value according to the parent size, but what if the decimal point comes out?
Do I just have to resize it?
-
@IknowQT
Are you setting margin/padding sizes via QSS (stylesheet) or via values in the style? HTML CSS allows percentages for sizes, but I don't think Qt QSS permits that. In which case, unless someone knows better, you will indeed need to change values inresize()
code.but what if the decimal point comes out?
Don't know what this means, or why it would be relevant,.