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

Page 239

Advertising
background image

KTD-S0057-I

Page 235 Linux® Programming Examples (DebianTM)


KTAM3874/pITX Software Guide


In contrast to the example which uses the subdirectories 'common' and 'mobile' all qml-files are located in
the same subdirectory 'qml'. This approach involves some changes in the qml-files (orange color).

File main.qrc:

<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>qml/flickr.qml</file>
<file>qml/Button.qml</file>
<file>qml/GridDelegate.qml</file>
<file>qml/ImageDetails.qml</file>
<file>qml/ListDelegate.qml</file>
<file>qml/Progress.qml</file>
<file>qml/RssModel.qml</file>
<file>qml/ScrollBar.qml</file>
<file>qml/Slider.qml</file>
<file>qml/TitleBar.qml</file>
<file>qml/ToolBar.qml</file>
<file>qml/images/gloss.png</file>
<file>qml/images/lineedit.png</file>
<file>qml/images/quit.png</file>
<file>qml/images/stripes.png</file>
<file>qml/images/titlebar.png</file>
<file>qml/images/toolbutton.png</file>
<file>qml/images/lineedit.sci</file>
<file>qml/images/titlebar.sci</file>
<file>qml/images/toolbutton.sci</file>
</qresource>
</RCC>


File flickr.qml (header with Qt

TM

license see 'main.cpp'):

import QtQuick 1.0

// Both lines are not necessary
// import "common" as Common
// import "mobile" as Mobile


Item
{
id:

screen

width:

320

height:

480

property bool inListView : false

Rectangle
{

id:

background

anchors.fill:

parent

color:

"#343434"

Advertising
This manual is related to the following products: