When I try to use “Felgo Live Code Reloading: Web Editor” using iOS with “Felgo Live Scripting mobile app” I’m getting multiple errors!
Here is the list of errors I’m receiving:
- Client Connected
- qrc:///qml/VPlayApps/essential/Page.qml:550: ReferenceError: getApplication is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:550: ReferenceError: getApplication is not defined
- qrc:///qml/VPlayApps/controls/AppTextField.qml:139: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:128: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:129: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:488: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/navigation/IosBackGestureHandler.qml:22: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/IconButton.qml:99: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/IconButton.qml:98: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/Icon.qml:74: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppTextField.qml:148: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppTextField.qml:25: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:186: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:117: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:198: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:75: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:212: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:205: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:191: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:158: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:193: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:192: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:63: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:52: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:35: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:14: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:11: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:129: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:488: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/navigation/IosBackGestureHandler.qml:22: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:158: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:193: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:192: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:63: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:52: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:35: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:14: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:11: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/PullToRefreshHandler.qml:106: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/PullToRefreshHandler.qml:121: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppActivityIndicator.qml:27: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppActivityIndicator.qml:26: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:64: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:116: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSliderHandle.qml:13: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:115: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppText.qml:19: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:186: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:117: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:191: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:110: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:212: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:75: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:198: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:205: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppText.qml:19: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:186: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:117: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:191: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:110: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:212: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:75: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:198: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:205: ReferenceError: dp is not defined
- file:WebEditor/qml/WebScriptMain.qml: Error loading document. Root component must be App or GameWindow.
- qrc:///qml/VPlayApps/controls/quick2/AppSliderHandle.qml:13: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppActivityIndicator.qml:27: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppActivityIndicator.qml:26: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:63: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:52: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:35: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:14: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:11: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/navigation/IosBackGestureHandler.qml:22: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:129: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:488: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:158: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:193: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:192: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/PullToRefreshHandler.qml:106: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/PullToRefreshHandler.qml:121: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:63: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:52: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:35: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:14: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:11: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppTextField.qml:139: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/Icon.qml:74: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/IconButton.qml:99: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/IconButton.qml:98: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/navigation/IosBackGestureHandler.qml:22: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:129: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:488: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppTextField.qml:148: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppTextField.qml:25: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:212: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:205: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:198: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:191: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:186: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:117: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:75: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:158: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:52: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/ScrollIndicator.qml:52: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:193: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppListView.qml:192: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:64: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:116: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:115: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/quick2/AppSlider.qml:128: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppText.qml:19: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:212: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:205: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:198: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:191: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:186: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:117: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:110: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:75: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppText.qml:19: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:212: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:205: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:198: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:191: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:186: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:117: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:110: ReferenceError: sp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:75: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/controls/AppButton.qml:68: ReferenceError: dp is not defined
- qrc:///qml/VPlayApps/essential/Page.qml:550: ReferenceError: getApplication is not defined (exception occurred during delayed function evaluation)
Even running my project through “Qt Creator 4.5.1 Community”, it runs the app but at loading the app, the application outputs this:
Unable to assign QQuickAnchorLine to double
Unable to assign QQuickAnchorLine to double
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 1, column 1: Start tag expected.
Here is my code where I’m getting all of theses errors:
import Felgo 3.0
import QtQuick 2.7
import QtQuick.Layouts 1.3
import QtPositioning 5.4
import QtQuick.XmlListModel 2.0
Page {
id: scrabblePage
backgroundColor: "#7fdbff"
title: "Scrabble Points"
// Ready to Run
property bool isReady: false
// Error Message
property string errorMsg: ""
// Get WordGameDictionary API Key from SearchPage.qml
property string wordAPIKey: ""//SearchPage.wordAPIKey
// Data Model - Scrabble Word & Scrabble Points
property var dataModel: []
// Scrabble Pointer Tracker
property int scrabbleScore: 0
AppText { // Title
id: titleText
y: 25
color: "#584937"
text: "Scrabble Scorer"
font.pixelSize: 40
font.underline: false
font.family: "Times New Roman"
font.italic: true
font.bold: true
verticalAlignment: Text.AlignTop
textFormat: Text.AutoText
anchors.horizontalCenter: parent.horizontalCenter
}
Row { // Row Layout: scrabbleText, scrabbleTextField, submitButton
id: row
y: 100
width: parent.verticalCenter
height: 30
spacing: 20
anchors.horizontalCenter: parent.horizontalCenter
AppText { // Text: Enter a Word
id: scrabbleText
width: 145
height: row.height
text: qsTr("Enter a Word:")
font.pixelSize: 22
font.underline: true
}
AppTextField { // User Word Input
id: scrabbleTextField
width: 100
height: row.height
placeholderText: "ex: ramble"
clearsOnBeginEditing: true
showClearButton : true
}
AppButton { // Submit Button
id: submitButton
height: row.height
text: "Submit"
flat: false
enabled: true
textSize: 15
fontBold: true
onClicked: { // Load Data
// Page Ready to Run
scrabblePage.isReady = true;
// Clear Error Message
scrabblePage.errorMsg = "";
// Checks if word is valid
scrabblePage.checkword(scrabbleTextField.text);
}
}
} // Row
// Checks if Word is Valid
function checkword(word){
word = word.replace(/\s/g,''); // eliminate white spaces
console.log("Word Checking: " + word);
if (word.length > 1){ // If user word greater than one
// Add APIKEY
scrabblePage.wordAPIKey = "APIKEY";
xmlModel.word = word; // Add word to API Call for Scrabble Points
}
else{ // Else add more letters
scrabblePage.errorMsg = "Please enter two letters";
}
}
XmlListModel {
id: xmlModel
// API Endpoint
property string endpoint: "https://www.wordgamedictionary.com/api/v1/references/scrabble/"
// Word for Points
property string word: ""
// Sets GET Request to API // Set xml source to load data from local file or web service
source: endpoint + word + scrabblePage.wordAPIKey
// Set query that returns items
query: "/entry"
// Specify roles to access item data
// EX: XmlRole { name: "itemText"; query: "string()" }
XmlRole { name: "word"; query: "word/string()"}
XmlRole { name: "scrabblescore"; query: "scrabblescore/string()"}
}
// Display the xml model in a list
AppListView {
id: listView
width: scrabblePage.width
anchors.bottomMargin: 10
anchors.bottom: column.top
anchors.topMargin: 10
anchors.top: error.bottom
anchors.left: row.left
anchors.right: row.right
visible: true
backgroundColor: "#7fdbff"
model: scrabblePage.dataModel // Get data model
// Display Model onto SimpleRow
delegate: SimpleRow { enabled: false }
}
ListPage {
id: scrabbleListPage
width: scrabblePage.width
anchors.bottomMargin: 10
anchors.bottom: column.top
anchors.topMargin: 10
anchors.top: error.bottom
visible: false //Not Visible
backgroundColor: "#7fdbff"
title: "Parse XML"
model: xmlModel
emptyText.text: "Not a Scrabble Word" //If no Words are found from API Call
delegate: SimpleRow {
id: scrabbleWord
// Text Layout
text: "Word: " + word + ", Scrabble Score: " + scrabblescore
// Scrabble Score string
property string scrabbleScore: scrabblescore
// Scrabble Word string
property string scrabbleWord: word
onTextChanged: { // Submit action listener
if(scrabblePage.isReady === true){ // Checks if app is fully loaded
if(scrabbleWord.scrabbleScore === "0"){ // If Score equals to 0
scrabblePage.errorMsg = "Not a Scrabble Word!";
}else{ // Else push word to the data model
// Gets word & points
var newItem = { text: scrabbleWord.text }
// Push new Item onto the data model
scrabblePage.dataModel.push(newItem);
// Reverse order, newer Item on top
scrabblePage.dataModel.reverse();
// signal change in data model to trigger UI update (list view)
scrabblePage.dataModelChanged()
// Reverse order back to normal for next new Item
scrabblePage.dataModel.reverse();
// Clear APIKEY
scrabblePage.wordAPIKey = "";
}
}else{ // Else App is not fully loaded
console.log("Not Ready: ScrabblePointsPage");
}
} // End of Action Listener
} // SimpleRow
} // ListPage
Column {
id: column
y: 400
anchors.bottomMargin: 50
anchors.bottom: parent.bottom
spacing: 10
anchors.horizontalCenter: parent.horizontalCenter
AppSlider { // Scrabble Point Slider
id: scrabbleSlider
}
AppText { // Slider Points Text
text: "Points: " + Math.round(scrabbleSlider.position * 100)
horizontalAlignment: Text.AlignHCenter
width: parent.width
}
AppButton{ // Add Points Button
id: addButton
text: "Add Points"
width: parent.width
flat: false
onClicked: {
var points = scrabblePage.scrabbleScore
scrabblePage.scrabbleScore = points + Math.round(scrabbleSlider.position * 100)
}
}
AppText { // Scrabble Points Text
id: scoreText
text: "Scrabble Points: " + scrabblePage.scrabbleScore
horizontalAlignment: Text.AlignHCenter
width: parent.width
}
AppButton {
id: resetButton
text: "Reset Score"
width: parent.width
flat: false
onClicked: {
scrabblePage.scrabbleScore = 0
}
}
}
AppText { //Error Message
id: error
width: row.width
color: "#c10808"
text: scrabblePage.errorMsg
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: row.bottom
anchors.topMargin: 5
}
}
I would like to remove the errors because I don’t want it to prevent me from presenting my application through my phone.
Thanks for looking! 🙂