QWidget : show widget when ctrl + F is pressed
-
Hi,
I have a QWidget which has a textedit and another findReplaceWidget which are added in a QVBoxLayout. Initially I need to hide findReplaceWidget and but when user presses Ctrl+F that is find some text , then only I need to display this findReplaceWidget.
Plz suggest some ideas..
Thanks..
-
Create a [[doc:QAction]], and define a proper [[doc:QKeySequence]] for it. Then, connect the signal of the action to a slot in your application that shows the findReplaceWidget.
-
I used QAction and it worked.. Thanks !!