Ktam3874/pitx software guide – Kontron KTAM3874-pITX User Manual
Page 236

KTD-S0057-I
Page 232 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
/* #include "moc_qmlapplicationviewer.cpp" */ /* not necessary, see the Makefile modifications */
Q_DECL_EXPORT int main (int argc, char *argv [])
{
QApplication app (argc, argv);
QmlApplicationViewer
viewer;
viewer.setOrientation
(QmlApplicationViewer::ScreenOrientationAuto);
viewer.setSource
(QUrl
("qrc:///qml/webbrowser.qml"));
viewer.showExpanded
();
return app.exec ();
}
The second example realizes a Flickr
TM
browser with sourcecode of '
Flickr Mobile
'. Flickr
TM
represents a web-
based photo management and sharing service by using web feeds as data format. A web feed implies typi-
cally HTML
TM
for content or links to webpages. This example is based on RSS 2 web feed format. Many
browsers can support RSS 1.x/2.x and the Atom 1.x format.
However, there is one big disadvantage: Flickr
TM
only provides the latest 20 items for a single query. An
anonymous data request cannot receive more items.
The picture below shows the initial screen:
Please note: the tag '
phytotaxa
' is licensed under '
Creative Commons Attribution License
' and can be
published by naming the author. What means the term '
tag
'? You can equip your photos and videos with a
tag (optional), which is like a keyword or category label.