I have a problem with Qt 4.6.0 and a shortcut for QPushButtons :
I want to display special text in QTextEdit when the user presses the button button , but only when the button pressed, as soon as it is released, I need another text.
Everything works fine, but now I want to add a shortcut (say F1 ) to perform the same operation, when I press F1 , it displays something special in QTextEdit 'until I release the key . How should I do it?
I added shortCut to my button , but when I press F1 it flickers, it likes while I press F1 , a lot of signals sent ... I want my QTextEdit when I press F1 , and then change back when I release key ...
Hope my question is clear!
Thanks so much for your advice!
source share