QMediaTimeInterval¶
The
QMediaTimeInterval
class represents a time interval with integer precision. More…
Synopsis¶
Functions¶
def
__eq__
(, arg__2)def
__ne__
(, arg__2)def
contains
(time)def
end
()def
isNormal
()def
normalized
()def
start
()def
translated
(offset)
Detailed Description¶
An interval is specified by an inclusive
start()
andend()
time. These must be set in the constructor, as this is an immutable class. The specific units of time represented by the class have not been defined - it is suitable for any times which can be represented by a signed 64 bit integer.The
isNormal()
method determines if a time interval is normal (a normal time interval hasstart()
<=end()
). A normal interval can be received from an abnormal interval by calling thenormalized()
method.The
contains()
method determines if a specified time lies within the time interval.The
translated()
method returns a time interval which has been translated forwards or backwards through time by a specified offset.See also
-
class
QMediaTimeInterval
¶ QMediaTimeInterval(arg__1)
QMediaTimeInterval(start, end)
- param arg__1
- param start
qint64
- param end
qint64
Constructs an empty interval.
Constructs an interval by taking a copy of
other
.Constructs an interval with the specified
start
andend
times.
-
PySide2.QtMultimedia.QMediaTimeInterval.
contains
(time)¶ - Parameters
time –
qint64
- Return type
bool
Returns true if the time interval contains the specified
time
. That is,start()
<= time <=end()
.
-
PySide2.QtMultimedia.QMediaTimeInterval.
end
()¶ - Return type
qint64
Returns the end time of the interval.
See also
-
PySide2.QtMultimedia.QMediaTimeInterval.
isNormal
()¶ - Return type
bool
Returns true if this time interval is normal. A normal time interval has
start()
<=end()
.See also
-
PySide2.QtMultimedia.QMediaTimeInterval.
normalized
()¶ - Return type
Returns a normalized version of this interval.
If the
start()
time of the interval is greater than theend()
time, then the returned interval has the start and end times swapped.
-
PySide2.QtMultimedia.QMediaTimeInterval.
__ne__
(arg__2)¶ - Parameters
arg__2 –
QMediaTimeInterval
- Return type
bool
-
PySide2.QtMultimedia.QMediaTimeInterval.
__eq__
(arg__2)¶ - Parameters
arg__2 –
QMediaTimeInterval
- Return type
bool
-
PySide2.QtMultimedia.QMediaTimeInterval.
start
()¶ - Return type
qint64
Returns the start time of the interval.
See also
-
PySide2.QtMultimedia.QMediaTimeInterval.
translated
(offset)¶ - Parameters
offset –
qint64
- Return type
Returns a copy of this time interval, translated by a value of
offset
. An interval can be moved forward through time with a positive offset, or backward through time with a negative offset.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.