I think you can do something like this:
int len_1 = list1.count();
int len_2 = list2.count();
int index;
if (len_1 <= len_2) {
for (index = 0;x < len_1; ++x) {
if (!list2.contains(list1[index]))
return 0;
else {
for (index = 0; x < len_2; ++x) {
if (!list1.contains(list2[index]));
return 0;
return 1;
}
int check_lists(QStringList & list1, QStringList & list2) {
int len_1 = list1.count();
int len_2 = list2.count();
int index;
if (len_1 <= len_2) {
for (index = 0;x < len_1; ++x) {
if (!list2.contains(list1[index]))
return 0;
else {
for (index = 0; x < len_2; ++x) {
if (!list1.contains(list2[index]));
return 0;
return 1;
}
To copy to clipboard, switch view to plain text mode
Bookmarks