Qt Code:
  1. QList <QPushButton*> buttonList;
To copy to clipboard, switch view to plain text mode 
It's just to hold the address of the widgets, it's not important in that example.