I have the following code:
Tabs {
Tab {
id: financialDetailsTab
title: i18n.tr("Financial Details")
page: Qt.resolvedUrl("FinancialDetails.qml")
}
Tab {
id: monthlyBudgetTab
title: i18n.tr("Monthly Budget")
page: Qt.resolvedUrl("MonthlyBudget.qml")
}
Tab {
id: annualBudgetTab
title: i18n.tr("Annual Budget")
page: Qt.resolvedUrl("AnnualBudget.qml")
}
Tab {
id: savingsGoalsTab
title: i18n.tr("Savings Goals")
page: Qt.resolvedUrl("SavingsGoals.qml")
}
}
which generates the following errors:
Unable to assign QString to QQuickItem*
Unable to assign QString to QQuickItem*
Unable to assign QString to QQuickItem*
Unable to assign QString to QQuickItem*
on the lines where used Qt::resolvedUrl. The component Tabsis part of the Ubuntu SDK, not Qt Quick, and a single use case does not provide much insight into the problem.
I added the same lines as the properties MainViewoutside the component Tabs, and the problem there was not obvious, which led me to the fact that the problem is related to the Ubuntu component. Although the problem may be related to the Ubuntu component, some help in understanding what the error message actually means will be helpful.
source
share