Describes the current project's Video Mode, accessed via the profile context property. More...
| Import Statement: | import org.shotcut.qml |
All properties reflect the active project profile. A profileChanged signal is emitted when the profile switches (e.g. when a new project is opened or the profile is explicitly changed). After receiving profileChanged, re-read all properties since they may have new values.
var w = profile.width var h = profile.height var scale = profile.width / profile.height * profile.sar
aspectRatio : real |
The display aspect ratio (DAR = width / height × SAR) of the current video profile.
fps : real |
The frames per second of the current video profile.
height : int |
The frame height of the current video profile in pixels.
sar : real |
The sample (pixel) aspect ratio of the current video profile. A value of 1.0 means square pixels.
width : int |
The frame width of the current video profile in pixels.
profileChanged() |
Emitted when the project profile changes. Re-read all properties after receiving this signal.
Note: The corresponding handler is onProfileChanged.