Skip to content

A Qt-based desktop application for efficiently finding and highlighting text loaded from a resource file.

License

Notifications You must be signed in to change notification settings

mrithip/Text-Finder-app

Repository files navigation

TextFinder

A simple Qt6-based text search application that allows users to search for text within a loaded document and highlights the found matches.

Features

  • 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

Prerequisites

  • Qt6 (version 6.5 or later)
  • CMake (version 3.19 or later)
  • A C++ compiler (e.g., GCC, Clang, or MSVC)

Installation

  1. Clone the repository:

    git clone https://github.com/mrithip/Text-Finder-app.git
    cd Text-Finder-app
    
  2. Ensure Qt6 is installed on your system. You can download it from the official Qt website.

Building

  1. Create a build directory:

    mkdir build
    cd build
    
  2. Configure the project with CMake:

    cmake ..
    
  3. Build the application:

    make
    
  4. Run the application:

    ./TextFinder
    

Usage

  1. Launch the TextFinder application.
  2. The text from the embedded input.txt file will be displayed in the text area.
  3. Enter the text you want to search for in the input field.
  4. Click the "Find" button or press Enter.
  5. If the text is found, it will be highlighted in yellow.
  6. If the text is not found, a message box will inform you.

Project Structure

  • main.cpp: Entry point of the application
  • textfinder.cpp: Implementation of the TextFinder class
  • textfinder.h: Header file for the TextFinder class
  • textfinder.ui: Qt Designer UI file
  • input.txt: Sample text file loaded into the application
  • CMakeLists.txt: CMake configuration file

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Feel free to submit issues and pull requests to improve the application.

Author

mrithip

About

A Qt-based desktop application for efficiently finding and highlighting text loaded from a resource file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published