import QtQuick 2.14 import QtQuick.Controls 2.14 import QtQuick.Layouts 1.12 ApplicationWindow { visible: true width: 800 height: 480 title: qsTr("Main Program") Row { anchors.centerIn: parent spacing: 20 Button { text: 'WORKING GET ALL' onClicked: { var entries = testQObject.working_get_all() console.log('##### WORKING GET ALL #####') console.log(entries) if (entries) { entries.forEach(function(entry) { if (entry !== null) { console.log(entry.name, entry.description) } }); } console.log('###########################') } } Button { text: 'NOT WORKING GET ALL' onClicked: { var entries = testQObject.not_working_get_all() console.log('##### NOT WORKING GET ALL #####') console.log(entries) if (entries) { entries.forEach(function(entry) { if (entry !== null) { console.log(entry.name, entry.description) } }); } console.log('###############################') } } } }