Well I want to loop through Qt::Key_0 to Qt::Key_9
Like adding a bunch of numbers in buttons:
Qt Code:
  1. for(int i = 0; i < 10; i++){
  2. QPushButton* Nums[i] = new QPushButton(tr(i));
  3. Nums[i]->setShortcut(0x30); // but i can't loop with hexes since there is no eval in C++
  4. Nums[i]->setFixedWidth(25);
  5. }
To copy to clipboard, switch view to plain text mode 
Any Ideas?