I've added in main function,after the Calc constructor, new procedure "connection" that connects signals with slots. The effect is the same = segfault.

Yes, there was error,but now is:
Qt Code:
  1. connect(this->zeroButton, SIGNAL(clicked(bool)), this, SLOT(setVal(const int &)));
To copy to clipboard, switch view to plain text mode 
And still is segfault.