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
connect(backitem6, SIGNAL(closeSignal()), this, SLOT(goMainPage()));
/*and slot*/
if(sender() == backitem){
/** operation for backitem**/
}else if(sender() == forwarditem){
/** operation for forward item **/
}
connect(backitem6, SIGNAL(closeSignal()), this, SLOT(goMainPage()));
/*and slot*/
if(sender() == backitem){
/** operation for backitem**/
}else if(sender() == forwarditem){
/** operation for forward item **/
}
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 ..
Bookmarks