QRadioTunerControlclass provides access to the radio tuning functionality of aQMediaService. 更多 …
若
QMediaServicecan tune an analog radio device it will implementQRadioTunerControl. This control provides a means to tune a radio device to a specificfrequencyas well as searchforwardsandbackwardsfor a signal.The functionality provided by this control is exposed to application code through the
QRadioTuner类。The interface name of
QRadioTunerControlisorg.qt-project.qt.radiotunercontrol/5.0作为定义在QRadioTunerControl_iid.
QRadioTunerControl
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs a radio tuner control with the given
parent
.
PySide2.QtMultimedia.QRadioTunerControl.
antennaConnectedChanged
(
connectionStatus
)
¶
connectionStatus
–
bool
PySide2.QtMultimedia.QRadioTunerControl.
band
(
)
¶
Band
Returns the frequency band a radio tuner is tuned to.
另请参阅
PySide2.QtMultimedia.QRadioTunerControl.
bandChanged
(
band
)
¶
band
–
Band
PySide2.QtMultimedia.QRadioTunerControl.
cancelSearch
(
)
¶
Stops scanning for a signal.
PySide2.QtMultimedia.QRadioTunerControl.
error
(
)
¶
Error
Returns the error state of a radio tuner.
PySide2.QtMultimedia.QRadioTunerControl.
error
(
err
)
¶
err
–
Error
PySide2.QtMultimedia.QRadioTunerControl.
errorString
(
)
¶
unicode
Returns a string describing a radio tuner’s error state.
PySide2.QtMultimedia.QRadioTunerControl.
frequency
(
)
¶
int
Returns the frequency a radio tuner is tuned to.
另请参阅
PySide2.QtMultimedia.QRadioTunerControl.
frequencyChanged
(
frequency
)
¶
frequency
–
int
PySide2.QtMultimedia.QRadioTunerControl.
frequencyRange
(
b
)
¶
b
–
Band
Returns a frequency
band
‘s minimum and maximum frequency.
PySide2.QtMultimedia.QRadioTunerControl.
frequencyStep
(
b
)
¶
b
–
Band
int
Returns the number of Hertz to increment the frequency by when stepping through frequencies within a given
band
.
PySide2.QtMultimedia.QRadioTunerControl.
isAntennaConnected
(
)
¶
bool
Identifies if there is an antenna connected to the device.
Returns true if there is a connected antenna, and false otherwise.
PySide2.QtMultimedia.QRadioTunerControl.
isBandSupported
(
b
)
¶
b
–
Band
bool
Identifies if a frequency
band
is supported.
Returns true if the band is supported, and false if it is not.
PySide2.QtMultimedia.QRadioTunerControl.
isMuted
(
)
¶
bool
Identifies if a radio tuner’s audio output is muted.
Returns true if the audio is muted, and false if it is not.
PySide2.QtMultimedia.QRadioTunerControl.
isSearching
(
)
¶
bool
Identifies if a radio tuner is currently scanning for signal.
Returns true if the tuner is scanning, and false if it is not.
PySide2.QtMultimedia.QRadioTunerControl.
isStereo
(
)
¶
bool
Identifies if a radio tuner is receiving a stereo signal.
Returns true if the tuner is receiving a stereo signal, and false if it is not.
PySide2.QtMultimedia.QRadioTunerControl.
mutedChanged
(
muted
)
¶
muted
–
bool
PySide2.QtMultimedia.QRadioTunerControl.
searchAllStations
(
[
searchMode=QRadioTuner.SearchFast
]
)
¶
searchMode
–
SearchMode
Starts a scan through the whole frequency band searching all stations with a specific
searchMode
.
PySide2.QtMultimedia.QRadioTunerControl.
searchBackward
(
)
¶
Starts a backwards scan for a signal, starting from the current
frequency()
.
PySide2.QtMultimedia.QRadioTunerControl.
searchForward
(
)
¶
Starts a forward scan for a signal, starting from the current
frequency()
.
PySide2.QtMultimedia.QRadioTunerControl.
searchingChanged
(
searching
)
¶
searching
–
bool
PySide2.QtMultimedia.QRadioTunerControl.
setBand
(
b
)
¶
b
–
Band
Sets the frequecy
band
a radio tuner is tuned to.
Changing the frequency band will reset the frequency to the minimum frequency of the new band.
另请参阅
PySide2.QtMultimedia.QRadioTunerControl.
setFrequency
(
frequency
)
¶
frequency
–
int
设置
frequency
a radio tuner is tuned to.
另请参阅
PySide2.QtMultimedia.QRadioTunerControl.
setMuted
(
muted
)
¶
muted
–
bool
设置
muted
state of a radio tuner’s audio output.
另请参阅
PySide2.QtMultimedia.QRadioTunerControl.
setStereoMode
(
mode
)
¶
mode
–
StereoMode
Sets a radio tuner’s stereo
mode
.
另请参阅
stereoMode()
StereoMode
PySide2.QtMultimedia.QRadioTunerControl.
setVolume
(
volume
)
¶
volume
–
int
Sets the percentage
volume
of a radio tuner’s audio output.
另请参阅
PySide2.QtMultimedia.QRadioTunerControl.
signalStrength
(
)
¶
int
Return a radio tuner’s current signal strength as a percentage.
PySide2.QtMultimedia.QRadioTunerControl.
signalStrengthChanged
(
signalStrength
)
¶
signalStrength
–
int
PySide2.QtMultimedia.QRadioTunerControl.
start
(
)
¶
Activate the radio device.
PySide2.QtMultimedia.QRadioTunerControl.
state
(
)
¶
State
Returns the current radio tuner state.
PySide2.QtMultimedia.QRadioTunerControl.
stateChanged
(
state
)
¶
state
–
State
PySide2.QtMultimedia.QRadioTunerControl.
stationFound
(
frequency
,
stationId
)
¶
frequency
–
int
stationId – unicode
PySide2.QtMultimedia.QRadioTunerControl.
stereoMode
(
)
¶
StereoMode
Returns a radio tuner’s stereo mode.
另请参阅
setStereoMode()
StereoMode
PySide2.QtMultimedia.QRadioTunerControl.
stereoStatusChanged
(
stereo
)
¶
stereo
–
bool
PySide2.QtMultimedia.QRadioTunerControl.
stop
(
)
¶
Deactivate the radio device.
PySide2.QtMultimedia.QRadioTunerControl.
volume
(
)
¶
int
Returns the volume of a radio tuner’s audio output as a percentage.
另请参阅
PySide2.QtMultimedia.QRadioTunerControl.
volumeChanged
(
volume
)
¶
volume
–
int