title: Forward Key Press from QGraphicsView
body: <p>I'm attempting to forward all key press events from my QGraphicsView to a widget that is currently on the scene. </p>
  
  <p>My QGraphicsView looks like this:</p>
  
  <pre><code>Character_controller::Character_controller(Game_state * game_state) : Game_base_controller(game_state) {
  
          this-&gt;character = new Character(this-&gt;game_state);
  
          this-&gt;scene-&gt;addWidget(this-&gt;character);
  
          connect(this, SIGNAL(keyPress(QKeyEvent *)), this-&gt;character, SLOT(update()));
  
      }
  </code></pre>
  
  <p>And then, my character which subclasses QWidget, which should recieve all keypress events</p>
  
  <pre><code>Character::Character(Game_state * game_state) : Base_object(game_state) {
  
  
  }
  
  Character::~Character() {
  
  
  
  
  
  }
  
  void Character::update() {
  
      cout &lt;&lt; "HELLO FROM TIMER CONNECTED ITEM" &lt;&lt; endl;
  
  
  }
  </code></pre>
  
  <p>For some reason, this isn't working. How can I forward all keypress events from the view to my character?</p>
  
  <p>The error I get is this:</p>
  
  <p>Object::connect: No such signal game::Character_controller::keyPress(QKeyEvent *) in implementation/game_controllers/character_controller.cpp:21</p>