You need to initialize every static variable (gSettings::i in your case). Add this to your implementation code outside any method body (i.e. right beneath include statements):
Qt Code:
  1. int gSettings::i = 0; // you can skip the "= 0" part if you like random values
To copy to clipboard, switch view to plain text mode