hi friends,

i got a small problem ..

i have a graphicsItem :- backButton (text: f7) and
a graphicsItem :- forwardButton(text f6)

so if the user clicks on backButton i am emitting a signal
Qt Code:
  1. connect(backitem6, SIGNAL(closeSignal()), this, SLOT(goMainPage()));
  2.  
  3. /*and slot*/
  4. if(sender() == backitem){
  5. /** operation for backitem**/
  6. }else if(sender() == forwarditem){
  7. /** operation for forward item **/
  8. }
To copy to clipboard, switch view to plain text mode 

this works fine ...

now i try shortcuts f6 and f7 .. so i override keyevents on graphicsview()

now how can i integrate the keypress with that signal closeSignal()

means both clicking and pressing f7 i have to call goMainPage() ..
and sender() also i have to manage ..

please give me any suggestion to handle this situation ..