QRadioDataclass provides interfaces to the RDS functionality of the system radio. 更多 …
def
availability
()
def
error
()
def
errorString
()
def
programType
()
def
programTypeName
()
def
radioText
()
def
stationId
()
def
stationName
()
def
setAlternativeFrequenciesEnabled
(enabled)
def
alternativeFrequenciesEnabledChanged
(enabled)
def
error
(error)
def
programTypeChanged
(programType)
def
programTypeNameChanged
(programTypeName)
def
radioTextChanged
(radioText)
def
stationIdChanged
(stationId)
def
stationNameChanged
(stationName)
The radio data object will emit signals for any changes in radio data. You can enable or disable alternative frequency with
setAlternativeFrequenciesEnabled().You can get a
QRadioDatainstance fromt theradioDataproperty from aQRadioTuner实例。radio = new QRadioTuner; radioData = radio->radioData();Alternatively, you can pass an instance of
QRadioTunerto the constructor toQRadioData.另请参阅
QRadioData
(
mediaObject
[
,
parent=None
]
)
¶
- param parent
QObject- param mediaObject
Constructs a radio data based on a
mediaObject
and
parent
.
mediaObject
should be an instance of
QRadioTuner
. It is preferable to use the
radioData
property on a
QRadioTuner
instance to get an instance of
QRadioData
.
During construction, this class is bound to the
mediaObject
使用
bind()
方法。
PySide2.QtMultimedia.QRadioData.
Error
¶
Enumerates radio data error conditions.
|
常量 |
描述 |
|---|---|
|
QRadioData.NoError |
没有发生错误。 |
|
QRadioData.ResourceError |
There is no radio service available. |
|
QRadioData.OpenError |
Unable to open radio device. |
|
QRadioData.OutOfRangeError |
An attempt to set a frequency or band that is not supported by radio device. |
PySide2.QtMultimedia.QRadioData.
ProgramType
¶
This property holds the type of the currently playing program as transmitted by the radio station. The value can be any one of the values defined in the table below.
|
常量 |
描述 |
|---|---|
|
QRadioData.Undefined |
|
|
QRadioData.News |
|
|
QRadioData.CurrentAffairs |
|
|
QRadioData.Information |
|
|
QRadioData.Sport |
|
|
QRadioData.Education |
|
|
QRadioData.Drama |
|
|
QRadioData.Culture |
|
|
QRadioData.Science |
|
|
QRadioData.Varied |
|
|
QRadioData.PopMusic |
|
|
QRadioData.RockMusic |
|
|
QRadioData.EasyListening |
|
|
QRadioData.LightClassical |
|
|
QRadioData.SeriousClassical |
|
|
QRadioData.OtherMusic |
|
|
QRadioData.Weather |
|
|
QRadioData.Finance |
|
|
QRadioData.ChildrensProgrammes |
|
|
QRadioData.SocialAffairs |
|
|
QRadioData.Religion |
|
|
QRadioData.PhoneIn |
|
|
QRadioData.Travel |
|
|
QRadioData.Leisure |
|
|
QRadioData.JazzMusic |
|
|
QRadioData.CountryMusic |
|
|
QRadioData.NationalMusic |
|
|
QRadioData.OldiesMusic |
|
|
QRadioData.FolkMusic |
|
|
QRadioData.Documentary |
|
|
QRadioData.AlarmTest |
|
|
QRadioData.Alarm |
|
|
QRadioData.Talk |
|
|
QRadioData.ClassicRock |
|
|
QRadioData.AdultHits |
|
|
QRadioData.SoftRock |
|
|
QRadioData.Top40 |
|
|
QRadioData.Soft |
|
|
QRadioData.Nostalgia |
|
|
QRadioData.Classical |
|
|
QRadioData.RhythmAndBlues |
|
|
QRadioData.SoftRhythmAndBlues |
|
|
QRadioData.Language |
|
|
QRadioData.ReligiousMusic |
|
|
QRadioData.ReligiousTalk |
|
|
QRadioData.Personality |
|
|
QRadioData.Public |
|
|
QRadioData.College |
PySide2.QtMultimedia.QRadioData.
alternativeFrequenciesEnabledChanged
(
enabled
)
¶
enabled
–
bool
PySide2.QtMultimedia.QRadioData.
availability
(
)
¶
AvailabilityStatus
Returns the availability of the radio data service.
A long as there is a media service which provides radio functionality, then the
availability
will be that of the
radio
tuner
.
PySide2.QtMultimedia.QRadioData.
error
(
)
¶
Returns the error state of a radio data.
另请参阅
PySide2.QtMultimedia.QRadioData.
errorString
(
)
¶
unicode
Returns a description of a radio data’s error state.
另请参阅
PySide2.QtMultimedia.QRadioData.
isAlternativeFrequenciesEnabled
(
)
¶
bool
PySide2.QtMultimedia.QRadioData.
programType
(
)
¶
PySide2.QtMultimedia.QRadioData.
programTypeChanged
(
programType
)
¶
programType
–
ProgramType
PySide2.QtMultimedia.QRadioData.
programTypeName
(
)
¶
unicode
PySide2.QtMultimedia.QRadioData.
programTypeNameChanged
(
programTypeName
)
¶
programTypeName – unicode
PySide2.QtMultimedia.QRadioData.
radioText
(
)
¶
unicode
PySide2.QtMultimedia.QRadioData.
radioTextChanged
(
radioText
)
¶
radioText – unicode
PySide2.QtMultimedia.QRadioData.
setAlternativeFrequenciesEnabled
(
enabled
)
¶
enabled
–
bool
PySide2.QtMultimedia.QRadioData.
stationId
(
)
¶
unicode
PySide2.QtMultimedia.QRadioData.
stationIdChanged
(
stationId
)
¶
stationId – unicode
PySide2.QtMultimedia.QRadioData.
stationName
(
)
¶
unicode
PySide2.QtMultimedia.QRadioData.
stationNameChanged
(
stationName
)
¶
stationName – unicode