Newbie understanding question. I'm using QStringList as an example, but it's kind of a general question.
If I have a QStringList that I want to populate, I can do:
myList << "String1" << "String2";
QStringList myList;
myList << "String1" << "String2";
To copy to clipboard, switch view to plain text mode
Or I can do:
myList.append("String1");
myList.append("String2");
QStringList myList;
myList.append("String1");
myList.append("String2");
To copy to clipboard, switch view to plain text mode
Obviously the first one is more concise, but is there any behind the scenes benefit to one approach or the other? When would I use one vs the other and why?
Bookmarks