Difference between revisions of "Radio Tuner Demo"

From Qt Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
+
 
  
 
[[Category:Developing_with_Qt::Qt Quick::Demos]]
 
[[Category:Developing_with_Qt::Qt Quick::Demos]]
Line 6: Line 6:
 
'''English''' [[Radio_Tuner_Demo_Japanese|日本語]]
 
'''English''' [[Radio_Tuner_Demo_Japanese|日本語]]
  
= Radio Tuner Demo =
+
 
  
 
[https://www.youtube.com/watch?v=GuAxYgOjOVA YouTube Video]
 
[https://www.youtube.com/watch?v=GuAxYgOjOVA YouTube Video]
Line 22: Line 22:
 
=== Source code ===
 
=== Source code ===
  
http://qt.gitorious.org/qt-labs/mobile-demos/trees/master/RadioTuner
+
http://code.qt.io/cgit/%7bnon-gerrit%7d/qt-labs/mobile-demos.git/tree/RadioTuner
  
 
=== Binaries ===
 
=== Binaries ===

Latest revision as of 08:03, 19 March 2015


English 日本語


YouTube Video

Description

In this app there is a radio fine tuning simulation just to demonstrate the most important ListView elements. There are two types of navigation, pressing the left or right arrows to find the next valid station or just moving the list around.

In this demo you can see how a model is created dynamically and also change its view according to its index position. A good thing to pay attention to this app is that there are two ListModels. The one that is populated using javascript and a fixed one that contains all radio stations. Inside the JavaScript file there is a function called createModel that you can check how both ListModels get together and how they will be used on a ListView.

You can also try to change the ListView properties like highlightRangeMode and see how it changes the list behavior. Another useful property for you to check is the onCurrentIndexChanged list signal, it is really simple to track the current radio station number with it.

Downloads

Source code

http://code.qt.io/cgit/%7bnon-gerrit%7d/qt-labs/mobile-demos.git/tree/RadioTuner

Binaries

Mac: http://get.qt.nokia.com/demos/mac/radiotuner.dmg
Maemo: http://get.qt.nokia.com/demos/maemo/radiotuner_1.0-maemo1_armel.deb
Symbian: http://get.qt.nokia.com/demos/symbian/radiotuner_installer.sis
Windows: http://get.qt.nokia.com/demos/windows/radiotuner_setup.exe

NOTE: Installing this Qt Quick demo app on your Symbian device will also install a beta version of Qt 4.7.1 which may cause the Ovi Store client or other Qt-based applications to fail. Until we update the apps with Qt 4.7.2 we advise you to not use your personal phone.