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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
If you only want to use the application without making any modifications, follow these steps:
-
Check the
build
Folder:- Ensure that the
build
folder exists in the cloned repository.
- Ensure that the
-
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.
-
If you want to build and run the project using Qt Creator, follow these steps:
-
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
-
-
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
).
-
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.
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.