Hi guys,

This is a for loop of the code positioning and giving sizes to 22 buttons:

Qt Code:
  1. for(int i=0; i<texts.size(); ++i)
  2. {
  3. QPushButton* button = new QPushButton(texts[i]);
  4.  
  5. connect(button, SIGNAL(clicked(bool)),
  6. signalMapper, SLOT(map()));
  7. button -> setFixedSize(50,30);
  8.  
  9. signalMapper -> setMapping(button, texts[i]);
  10. gridLayout -> addWidget(button, i/5, i%5);
  11. }
To copy to clipboard, switch view to plain text mode 

The image is in the following link:
http://uploads.im/BCXZu.jpg

First I want to change the position of the buttons. For example arrange them. And make some ones smaller/bigger that other ones.

Then to give the buttons some colors to appear nice.

How to do these please? Should I firstly remove the gridlayout?
I wrote the app only in C++ code and didn't use the Designer.