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.
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.