QMediaTimeRangeclass represents a set of zero or more disjoint time intervals. 更多 …
def
__add__
(, arg__2)
def
__eq__
(, arg__2)
def
__iadd__
(arg__1)
def
__iadd__
(arg__1)
def
__isub__
(arg__1)
def
__isub__
(arg__1)
def
__ne__
(, arg__2)
def
__sub__
(, arg__2)
def
addInterval
(interval)
def
addInterval
(start, end)
def
addTimeRange
(arg__1)
def
clear
()
def
contains
(time)
def
earliestTime
()
def
intervals
()
def
isContinuous
()
def
isEmpty
()
def
latestTime
()
def
operator=
(arg__1)
def
removeInterval
(interval)
def
removeInterval
(start, end)
def
removeTimeRange
(arg__1)
earliestTime(),latestTime(),intervals()andisEmpty()methods are used to get information about the current time range.
addInterval(),removeInterval()andclear()methods are used to modify the current time range.When adding or removing intervals from the time range, existing intervals within the range may be expanded, trimmed, deleted, merged or split to ensure that all intervals within the time range remain distinct and disjoint. As a consequence, all intervals added or removed from a time range must be
normal.另请参阅
QMediaTimeRange
¶
QMediaTimeRange(arg__1)
QMediaTimeRange(range)
QMediaTimeRange(start, end)
- param range
- param arg__1
- param start
qint64- param end
qint64
Constructs an empty time range.
Constructs a time range that contains an initial interval from
start
to
end
包含在内。
If the interval is not
normal
, the resulting time range will be empty.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
addInterval
(
interval
)
¶
interval
–
QMediaTimeInterval
Adds the specified
interval
to the time range.
Adding intervals which are not
normal
is invalid, and will be ignored.
If the specified interval is adjacent to, or overlaps existing intervals within the time range, these intervals will be merged.
This operation takes linear time.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
addInterval
(
start
,
end
)
¶
start
–
qint64
end
–
qint64
这是重载函数。
Adds the interval specified by
start
and
end
to the time range.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
addTimeRange
(
arg__1
)
¶
arg__1
–
QMediaTimeRange
Adds each of the intervals in
range
to this time range.
相当于调用
addInterval()
for each interval in
range
.
PySide2.QtMultimedia.QMediaTimeRange.
clear
(
)
¶
Removes all intervals from the time range.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
contains
(
time
)
¶
time
–
qint64
bool
返回 true 若指定
time
lies within the time range.
PySide2.QtMultimedia.QMediaTimeRange.
earliestTime
(
)
¶
qint64
Returns the earliest time within the time range.
For empty time ranges, this value is equal to zero.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
intervals
(
)
¶
Returns the list of intervals covered by this time range.
PySide2.QtMultimedia.QMediaTimeRange.
isContinuous
(
)
¶
bool
Returns true if the time range consists of a continuous interval. That is, there is one or fewer disjoint intervals within the time range.
PySide2.QtMultimedia.QMediaTimeRange.
isEmpty
(
)
¶
bool
Returns true if there are no intervals within the time range.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
latestTime
(
)
¶
qint64
Returns the latest time within the time range.
For empty time ranges, this value is equal to zero.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
__ne__
(
arg__2
)
¶
arg__2
–
QMediaTimeRange
bool
PySide2.QtMultimedia.QMediaTimeRange.
__add__
(
arg__2
)
¶
arg__2
–
QMediaTimeRange
PySide2.QtMultimedia.QMediaTimeRange.
__iadd__
(
arg__1
)
¶
arg__1
–
QMediaTimeInterval
PySide2.QtMultimedia.QMediaTimeRange.
__iadd__
(
arg__1
)
¶
arg__1
–
QMediaTimeRange
PySide2.QtMultimedia.QMediaTimeRange.
__sub__
(
arg__2
)
¶
arg__2
–
QMediaTimeRange
PySide2.QtMultimedia.QMediaTimeRange.
__isub__
(
arg__1
)
¶
arg__1
–
QMediaTimeInterval
PySide2.QtMultimedia.QMediaTimeRange.
__isub__
(
arg__1
)
¶
arg__1
–
QMediaTimeRange
PySide2.QtMultimedia.QMediaTimeRange.operator=(arg__1)
arg__1
–
QMediaTimeInterval
PySide2.QtMultimedia.QMediaTimeRange.
__eq__
(
arg__2
)
¶
arg__2
–
QMediaTimeRange
bool
PySide2.QtMultimedia.QMediaTimeRange.
removeInterval
(
interval
)
¶
interval
–
QMediaTimeInterval
移除指定
interval
from the time range.
Removing intervals which are not
normal
is invalid, and will be ignored.
Intervals within the time range will be trimmed, split or deleted such that no intervals within the time range include any part of the target interval.
This operation takes linear time.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
removeInterval
(
start
,
end
)
¶
start
–
qint64
end
–
qint64
这是重载函数。
Removes the interval specified by
start
and
end
from the time range.
另请参阅
PySide2.QtMultimedia.QMediaTimeRange.
removeTimeRange
(
arg__1
)
¶
arg__1
–
QMediaTimeRange
Removes each of the intervals in
range
from this time range.
相当于调用
removeInterval()
for each interval in
range
.