QRadioTunerControl¶
The
QRadioTunerControl
class provides access to the radio tuning functionality of aQMediaService
. More…

Detailed Description¶
If a
QMediaService
can tune an analog radio device it will implementQRadioTunerControl
. This control provides a means to tune a radio device to a specificfrequency
as well as searchforwards
andbackwards
for a signal.The functionality provided by this control is exposed to application code through the
QRadioTuner
class.The interface name of
QRadioTunerControl
isorg.qt-project.qt.radiotunercontrol/5.0
as defined inQRadioTunerControl_iid
.See also
-
class
QRadioTunerControl
([parent=None])¶ - param parent
QObject
Constructs a radio tuner control with the given
parent
.
-
PySide2.QtMultimedia.QRadioTunerControl.
antennaConnectedChanged
(connectionStatus)¶ - Parameters
connectionStatus –
bool
-
PySide2.QtMultimedia.QRadioTunerControl.
band
()¶ - Return type
Band
Returns the frequency band a radio tuner is tuned to.
See also
-
PySide2.QtMultimedia.QRadioTunerControl.
bandChanged
(band)¶ - Parameters
band –
Band
-
PySide2.QtMultimedia.QRadioTunerControl.
cancelSearch
()¶ Stops scanning for a signal.
-
PySide2.QtMultimedia.QRadioTunerControl.
error
()¶ - Return type
Error
Returns the error state of a radio tuner.
-
PySide2.QtMultimedia.QRadioTunerControl.
error
(err) - Parameters
err –
Error
-
PySide2.QtMultimedia.QRadioTunerControl.
errorString
()¶ - Return type
unicode
Returns a string describing a radio tuner’s error state.
-
PySide2.QtMultimedia.QRadioTunerControl.
frequency
()¶ - Return type
int
Returns the frequency a radio tuner is tuned to.
See also
-
PySide2.QtMultimedia.QRadioTunerControl.
frequencyChanged
(frequency)¶ - Parameters
frequency –
int
-
PySide2.QtMultimedia.QRadioTunerControl.
frequencyRange
(b)¶ - Parameters
b –
Band
- Return type
Returns a frequency
band
‘s minimum and maximum frequency.
-
PySide2.QtMultimedia.QRadioTunerControl.
frequencyStep
(b)¶ - Parameters
b –
Band
- Return type
int
Returns the number of Hertz to increment the frequency by when stepping through frequencies within a given
band
.
-
PySide2.QtMultimedia.QRadioTunerControl.
isAntennaConnected
()¶ - Return type
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)¶ - Parameters
b –
Band
- Return type
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
()¶ - Return type
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
()¶ - Return type
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
()¶ - Return type
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)¶ - Parameters
muted –
bool
-
PySide2.QtMultimedia.QRadioTunerControl.
searchAllStations
([searchMode=QRadioTuner.SearchFast])¶ - Parameters
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)¶ - Parameters
searching –
bool
-
PySide2.QtMultimedia.QRadioTunerControl.
setBand
(b)¶ - Parameters
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.
See also
-
PySide2.QtMultimedia.QRadioTunerControl.
setFrequency
(frequency)¶ - Parameters
frequency –
int
Sets the
frequency
a radio tuner is tuned to.See also
-
PySide2.QtMultimedia.QRadioTunerControl.
setMuted
(muted)¶ - Parameters
muted –
bool
Sets the
muted
state of a radio tuner’s audio output.See also
-
PySide2.QtMultimedia.QRadioTunerControl.
setStereoMode
(mode)¶ - Parameters
mode –
StereoMode
Sets a radio tuner’s stereo
mode
.See also
stereoMode()
StereoMode
-
PySide2.QtMultimedia.QRadioTunerControl.
setVolume
(volume)¶ - Parameters
volume –
int
Sets the percentage
volume
of a radio tuner’s audio output.See also
-
PySide2.QtMultimedia.QRadioTunerControl.
signalStrength
()¶ - Return type
int
Return a radio tuner’s current signal strength as a percentage.
-
PySide2.QtMultimedia.QRadioTunerControl.
signalStrengthChanged
(signalStrength)¶ - Parameters
signalStrength –
int
-
PySide2.QtMultimedia.QRadioTunerControl.
start
()¶ Activate the radio device.
-
PySide2.QtMultimedia.QRadioTunerControl.
state
()¶ - Return type
State
Returns the current radio tuner state.
-
PySide2.QtMultimedia.QRadioTunerControl.
stateChanged
(state)¶ - Parameters
state –
State
-
PySide2.QtMultimedia.QRadioTunerControl.
stationFound
(frequency, stationId)¶ - Parameters
frequency –
int
stationId – unicode
-
PySide2.QtMultimedia.QRadioTunerControl.
stereoMode
()¶ - Return type
StereoMode
Returns a radio tuner’s stereo mode.
See also
setStereoMode()
StereoMode
-
PySide2.QtMultimedia.QRadioTunerControl.
stereoStatusChanged
(stereo)¶ - Parameters
stereo –
bool
-
PySide2.QtMultimedia.QRadioTunerControl.
stop
()¶ Deactivate the radio device.
-
PySide2.QtMultimedia.QRadioTunerControl.
volume
()¶ - Return type
int
Returns the volume of a radio tuner’s audio output as a percentage.
See also
-
PySide2.QtMultimedia.QRadioTunerControl.
volumeChanged
(volume)¶ - Parameters
volume –
int