this is a Qt5.15 question + Runtime SDK Qt 100.12.0 and C++ code (not QML)
well...
I Try to use the address Suggestions in a QListView, populated directly from the SuggestListModel.
but I see just empty lines (without text) even though i see the coming rows in the QListView.
I also confirmed the model is working as expected, receiving the relative suggestions using the following code ...
QList<Esri::ArcGISRuntime::SuggestResult> lst = m_suggestListModel->suggestResults();
qDebug() << lst.at(0).label();
qDebug() << lst.at(1).label();
...
// indeed i see the comming suggestions
this is the code i use:
SuggestParameters suggestParams;
suggestParams.setCategories(QStringList {"Address"});
suggestParams.setMaxResults(5);
m_locatorTask->suggestions()->setSuggestParameters(suggestParams);
m_suggestListModel = m_locatorTask->suggestions();
m_listview->setModel( m_suggestListModel );
m_suggestListModel->setSearchText(text);
any clue ?
thank you!