Hey everyone,
I have a problem with Qt 4.6.0 and shortcut for QPushButtons :
I want to display a special text in a QTextEdit when the user clicks a button, but only when the button is pressed, as soon as it's released, i want another text to come up.
Everything works fine but now I want to add a shortCut (let's say F1) to perform the exact same operation, when I push F1 it displays something special in a QTextEdit 'til I release the key. How do I manage to do this ?
I added the shortCut on my button, but when I press F1, it's blinking, it's like as long as I press F1, lots of signals are being emitted... I want my QTextEdit to change when I press F1 and then change back when I release the key...
I hope my question is clear !
Thanks a lot in advance for your advices !