Enums.AspectRatioMode enumeration
The AspectRatioMode can be one of:
Value | Description |
---|---|
Enums.AspectRatioModeIgnoreAspectRatio (Qt::AspectRatioMode::IgnoreAspectRatio) | The size is scaled freely. The aspect ratio is not preserved. |
Enums.AspectRatioModeKeepAspectRatio (Qt::AspectRatioMode::KeepAspectRatio) | The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio. |
Enums.AspectRatioModeKeepAspectRatioByExpanding (Qt::AspectRatioMode::KeepAspectRatioByExpanding) | The size is scaled to a rectangle as small as possible outside given rectangle, preserving the aspect ratio. |