QString iconsPath[16] = {"brush", "elipse","krivaya","lastic", "line", "megasquare", "pencil", "pipetka", "raspylitel", "recelipse", "rectangle", "square", "zoom", "star", "text", "zalivka"};
QString s = iconsPath[2 * i + j];QIcon icon = QIcon(":\"+s+".png");toolButtons[2 * i + j] = new QPushButton(icon, "");
<!DOCTYPE RCC><RCC version="1.0"><qresource> <file>icon.png</file></qresource></RCC>
RESOURCES += icon.qrc
QIcon(":/icon.png");