You can add a constructor to customStruct to that you can write

Qt Code:
  1. list.append(customStruct(......));
To copy to clipboard, switch view to plain text mode 

Cheers,
_