Does Qt have a built-in way to inflate or grow a rectangle? Like .NET’s Rectangle.Inflate or Java’s Rectangle.grow… or do I have to implement my own? I’ve looked through the docs and couldn’t find one but maybe I’m missing something.
Does Qt have a built-in way to inflate or grow a rectangle? Like .NET’s
Share
There seems to be an
adjustfunction that comes closest to what you want. You could easily use it to "inflate" a rectangle:where
dxanddyare the amounts you want to inflate in the x and y directions.