Third parameter of QObject::connect must be an address of object. A &calc is not an address.