This my overloaded event function.I realized that my keyPressEvent is called twice.I tried to delete QWidget::event(e) but this time program didnt execute well.So How can I use event ? Thanks.
Printable View
This my overloaded event function.I realized that my keyPressEvent is called twice.I tried to delete QWidget::event(e) but this time program didnt execute well.So How can I use event ? Thanks.
Hmm, what are you trying to do?
PS. Please use [code]-tags around code snippets.
I tried to control shortcuts(button1:F1...) So I used
function.When F1 is pressed (means button1 is clicked()) I can handle but twice.It is called from QApplication file too.
But now I agreed to try that:
Code:
connect(button1,SIGNAL(clicked( )),this,SLOT(function( ))
You can assign shortcuts to actions and buttons, and there is QShortcut too..