A simple Qt6-based text search application that allows users to search for text within a loaded document and highlights the found matches.
- Load and display text from an embedded file
- Search for specific text within the document
- Highlight found text in the editor
- User-friendly interface with a search input field and button
- Displays a message if the searched text is not found
- Qt6 (version 6.5 or later)
- CMake (version 3.19 or later)
- A C++ compiler (e.g., GCC, Clang, or MSVC)
-
Clone the repository:
git clone https://github.com/mrithip/Text-Finder-app.git cd Text-Finder-app -
Ensure Qt6 is installed on your system. You can download it from the official Qt website.
-
Create a build directory:
mkdir build cd build -
Configure the project with CMake:
cmake .. -
Build the application:
make -
Run the application:
./TextFinder
- Launch the TextFinder application.
- The text from the embedded
input.txtfile will be displayed in the text area. - Enter the text you want to search for in the input field.
- Click the "Find" button or press Enter.
- If the text is found, it will be highlighted in yellow.
- If the text is not found, a message box will inform you.
main.cpp: Entry point of the applicationtextfinder.cpp: Implementation of the TextFinder classtextfinder.h: Header file for the TextFinder classtextfinder.ui: Qt Designer UI fileinput.txt: Sample text file loaded into the applicationCMakeLists.txt: CMake configuration file
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to submit issues and pull requests to improve the application.
mrithip