Skip to content

sivasai-yarlagadda/SimpleNotepad_QT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Simple Notepad Using QT

Project Overview

This project is a simple text editor application developed using the Qt framework. It provides basic functionalities akin to a traditional notepad, including file handling and text editing capabilities.

Functionalities

  1. Opening File

    • Allows users to open existing text files from their local system into the editor.
    • Utilizes QFileDialog to prompt the user to select a file for opening.
  2. Save

    • Enables users to save the current content of the editor into the file from which it was opened or a specified file if it's a new file.
    • Implements file saving using standard file handling mechanisms in Qt.
  3. Save As

    • Provides the option to save the content of the editor into a new file or overwrite an existing file with a different name.
    • Ensures flexibility in file saving operations by allowing users to specify the file name and location.
  4. Cut

    • Facilitates cutting selected text from the editor and copying it to the clipboard.
    • Utilizes clipboard functionality provided by Qt to store the cut content temporarily for later use.
  5. Copy

    • Allows users to copy selected text from the editor to the clipboard without removing it from the editor.
    • Uses Qt's clipboard functionality to store the copied content for pasting elsewhere.
  6. Paste

    • Enables users to insert content from the clipboard into the editor at the current cursor position.
    • Utilizes Qt's clipboard functionality to retrieve the content and insert it seamlessly into the editor.
  7. Undo

    • Provides the ability to revert the last action performed in the editor, restoring the previous state.
    • Implements an undo stack using Qt's QUndoStack to manage and execute undo operations.
  8. Redo

    • Allows users to redo actions that were undone, restoring the editor to subsequent states.
    • Works in conjunction with the undo stack to manage and execute redo operations effectively.
  9. Close Option

    • Offers a straightforward option to close the application, ensuring user-friendly navigation.
    • Implements a close button or menu item that terminates the application when selected.
  10. Clear Option

    • Provides a feature to clear all content from the editor, effectively resetting the workspace.
    • Implements a clear function that removes all text from the editor's display area.

Running the Project

Using the Application Directly

If you only want to use the application without making any modifications, follow these steps:

  1. Check the build Folder:

    • Ensure that the build folder exists in the cloned repository.
  2. Execute the Application:

    • Navigate to the following path in the terminal or file explorer:

      Notepad/build-Notepad-Desktop_Qt_6_2_4_MinGW_64_bit-Debug/debug/Notepad.exe
      
    • Double-click Notepad.exe to launch the application.

Running the Project Through Qt Creator

If you want to build and run the project using Qt Creator, follow these steps:

  1. Clone the Repository:

    • Open a terminal or command prompt.

    • Execute the following command to clone the repository:

      git clone https://github.com/sivasai-yarlagadda/SimpleNotepad_QT.git
  2. Open the Project in Qt Creator:

    • Launch Qt Creator.
    • Click on File > Open File or Project.
    • Navigate to the directory where you cloned the repository and select the project file (*.pro).
  3. Build and Run the Application:

    • Configure the build settings (e.g., Debug or Release mode).
    • Set the build target to your desired platform (e.g., Desktop).
    • Click the green play button (or press Ctrl+R) to build and run the project.

Conclusion

The Simple Notepad project showcases essential text editing functionalities within a Qt-based GUI application. Developed in C++, it provides a familiar notepad experience with features for file handling, text editing, and user interaction. Utilizing Qt ensures cross-platform compatibility and efficient text and file management.

Contact Information

Email

LinkedIn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published