---------- Forwarded message ----------
From: Alessandro Portale <alessandro.port...@googlemail.com>
Date: Mar 5, 10:33 pm
Subject: White screen for C++/QML application
To: android-qt
I assume that you used the Qt Quick App wizard of Qt Creator in order
to create your application. The resulting code of that wizard relies
on qmake's "DEPLOYMENT" feature which right now is not supported by
Necessitas. (I am clueless whether Android allows raw file deployment
at all).
However, your white screen may occur because the files are not on the
device.
The qml demos from the video use .qrc files instead, which compile the
qml files into the main binary. Seehttp://chaos.troll.no/~aportale/android-qt-demos/android-qt-demos.zip
import QtQuick 2.9
import QtQuick.Controls 2.2
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Scroll")
Rectangle{
width:500
height:400
color:"red"
}
ScrollView {
anchors.fill: parent
ListView {
width: parent.width
model: 20
delegate: ItemDelegate {
text: "Item " + (index + 1)
width: parent.width
}
}
}
}