内容表

上一话题

QRadioTuner

下一话题

QSound

QRadioTunerControl

QRadioTunerControl class provides access to the radio tuning functionality of a QMediaService . 更多

Inheritance diagram of PySide2.QtMultimedia.QRadioTunerControl

详细描述

QMediaService can tune an analog radio device it will implement QRadioTunerControl . This control provides a means to tune a radio device to a specific frequency as well as search forwards and backwards for a signal.

The functionality provided by this control is exposed to application code through the QRadioTuner 类。

The interface name of QRadioTunerControl is org.qt-project.qt.radiotunercontrol/5.0 作为定义在 QRadioTunerControl_iid .

class 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.

另请参阅

setBand()

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.

另请参阅

setFrequency()

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.

另请参阅

band()

PySide2.QtMultimedia.QRadioTunerControl. setFrequency ( frequency )
参数

frequency int

设置 frequency a radio tuner is tuned to.

另请参阅

frequency()

PySide2.QtMultimedia.QRadioTunerControl. setMuted ( muted )
参数

muted bool

设置 muted state of a radio tuner’s audio output.

另请参阅

isMuted()

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.

另请参阅

volume()

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.

另请参阅

setVolume()

PySide2.QtMultimedia.QRadioTunerControl. volumeChanged ( volume )
参数

volume int