I’ve been attempting to retrieve text values from a QList (extracted from an XTreeWidget) and put them into a concatenated string for use in a MetaSQL query (WHERE IN ())
However the specific format for retrieving the values is not clear. The at(index) method is not implemented and value(index) does not seem to work either. See below for the non-functioning code:
var tags = _custTagFilter.selectedItems();
if (tags.length > 0) {
params.tags = tags.value(0).toString();
for (var i = 1; i < tags.length; i++) {
params.tags = params.tags + ',' + tags.value(i).toString();
}
}
Any help is appreciated.