// Here's an example QSet with QString values: QSet<QString> set;// To insert a value into the set, use insert(): set.insert("one"); set.insert("three"); set.insert("seven");// Another way to insert items into the set is to use operator<<(): set << "twelve" << "fifteen" << "nineteen";// To test whether an item belongs to the set or not, use contains(): if (!set.contains("ninety-nine"))