RadioData QML Type
Access RDS data from a QML application. More...
Import Statement: | import QtMultimedia 5.15 |
Inherits: |
Properties
- alternativeFrequenciesEnabled : bool
- availability : enumeration
- programType : enumeration
- programTypeName : string
- radioText : string
- stationId : string
- stationName : string
Detailed Description
RadioData
is your gateway to all the data available through RDS. RDS is the Radio Data System which allows radio stations to broadcast information like the stationId, programType, programTypeName, stationName, and radioText. This information can be read from the RadioData
. It also allows you to set whether the radio should tune to alternative frequencies if the current signal strength falls too much.
Rectangle { width: 480 height: 320 Radio { id: radio band: Radio.FM } Column { Text { text: radio.radioData.stationName } Text { text: radio.radioData.programTypeName } Text { text: radio.radioData.radioText } } }
You use RadioData
together with a Radio, either by accessing the radioData
property of the Radio, or creating a separate RadioData. The properties of the RadioData type will reflect the information broadcast by the radio station the Radio is currently tuned to.
See also Radio Overview.
Property Documentation
alternativeFrequenciesEnabled : bool |
This property allows you to specify whether the radio should try and tune to alternative frequencies if the signal strength of the current station becomes too weak. The alternative frequencies are emitted over RDS by the radio station, and the tuning happens automatically.
availability : enumeration |
Returns the availability state of the radio data interface.
This is one of:
Value | Description |
---|---|
Available | The radio data interface is available to use |
Busy | The radio data interface is usually available to use, but is currently busy. |
Unavailable | The radio data interface is not available to use (there may be no radio hardware) |
ResourceMissing | There is one or more resources missing, so the radio cannot be used. It may be possible to try again at a later time. |
programType : enumeration |
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.
Value |
---|
Undefined |
News |
CurrentAffairs |
Information |
Sport |
Education |
Drama |
Culture |
Science |
Varied |
PopMusic |
RockMusic |
EasyListening |
LightClassical |
SeriousClassical |
OtherMusic |
Weather |
Finance |
ChildrensProgrammes |
SocialAffairs |
Religion |
PhoneIn |
Travel |
Leisure |
JazzMusic |
CountryMusic |
NationalMusic |
OldiesMusic |
FolkMusic |
Documentary |
AlarmTest |
Alarm |
Talk |
ClassicRock |
AdultHits |
SoftRock |
Top40 |
Soft |
Nostalgia |
Classical |
RhythmAndBlues |
SoftRhythmAndBlues |
Language |
ReligiousMusic |
ReligiousTalk |
Personality |
Public |
College |
programTypeName : string |
This property holds a string representation of the programType.
radioText : string |
This property holds free-text transmitted by the radio station. This is typically used to show supporting information for the currently playing content, for instance song title or artist name.
stationId : string |
This property allows you to read the station Id of the currently tuned radio station.
stationName : string |
This property has the name of the currently tuned radio station.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.