Adding ‘Next’ and ‘Previous’ functionality to search engine
Hi,
Following this example here http://doc.qt.nokia.com/main-snapshot/uitools-textfinder.html to find matching strings. Now I have added a ‘Next’ and ‘Previous’ button to choose one searched result at a time. Can anyone point out Qt code to achieve this. I am not sure how to proceed.
Thanks
6 replies
Did you try adding a QAction with a shortcut and connect that to a slot?
Did you try adding a QAction with a shortcut and connect that to a slot?
This is the solution. Add two new buttons, connect them to slots and to the same as in find, only that you use the current cursor position as start position.
You must log in to post a reply. Not a member yet? Register here!



