Below is the code and the error ,i am not able to get the reason for it,this is not in anyway necessary but it looks good and effiecient and above all now i have a oppurtunity to see how much can it misbehave so i am using it

View
Qt Code:
  1. void height(int heightValue)
  2. {
  3. myScene->height(heightValue);
  4. }
To copy to clipboard, switch view to plain text mode 
Scene
Qt Code:
  1. private:
  2. int heightValue;
  3.  
  4. void height(int heightValue)
  5. {
  6. this.heightValue = heightValue;
  7. }
To copy to clipboard, switch view to plain text mode