Hi,
I have a QList with a custom data type. All I found on filling the list looked like this:
Is there a more elegant way to do that? So that everything is on one line or maybe two? Or does one line only work if I create a new class?Qt Code:
customStruct newStruct; newStruct.prperty1 = xy; newStruct.prperty2 = xy; newStruct.prperty3 = xy; [...] newStruct.prpertyN = xy; list.append(newStruct);To copy to clipboard, switch view to plain text mode
Bookmarks