Skip to content

The Quote Generator app is a C++ application developed using the Qt framework. It categorizes and displays quotes based on user emotions, utilizing a chain of responsibility pattern to handle different types of emotions effectively. The app supports four primary emotion categories: Happy, Sad, Angry, and Neutral.

License

Notifications You must be signed in to change notification settings

Abdelrahman822000/Random-Quote-Generator

Repository files navigation

This Project was developed by Abdelrahman Mohamed Hamad

Table of Contents

Quote Generator

The Quote Generator app is designed to provide quotes based on user emotions, with a chain of responsibility pattern to handle different types of emotions.

About the App

The Quote Generator app categorizes quotes into different emotions (Happy, Sad, Angry, Neutral). Depending on the user's emotion, the app fetches a relevant quote from the appropriate category.

App Task

In this scenario, whenever the user interacts with the app (initiated by pressing Start Button), a quote is displayed based on the user's selected emotion. The app also supports storing and restoring quotes states using a backup mechanism.

Instructions

Prerequisites

  • Qt Creator
  • Qt 6.7.1 or higher
  • C++ compiler (e.g., GCC, MinGW)

Steps

  1. Clone the repository:
    git clone https://github.com/Abdelrahman822000/Random-Quote-Generator.git
    cd Random-Quote-Generator
  2. Build the project:
    • Open the Random-Quote-Generator in Qt Creator by choosing file -> Open file or Project then navigate to where you cloned the repository and choose Random_Quote_Generator.pro
    • Configure the project using your desired kit.
    • Build the project using the Build menu.
    • Run the project
    • Alternative: Go to build\Desktop_Qt_6_7_0_MinGW_64_bit-Release\release and run the Random_Quote_Generator.exe executable.

How to Use

  • Login: Enter your username then press Login. LoginPage

  • Generate new Quote: Choose your emotion and press StartNew Quote

  • Store & Restore: Store the current state of quote or restore a previously stored quote state. Store and Restore

  • Clear: Clear the Output field.

  • Exit: Press exit to return to the login page. Output and Exit

Contact

If you have any questions, feel free to contact me:

About

The Quote Generator app is a C++ application developed using the Qt framework. It categorizes and displays quotes based on user emotions, utilizing a chain of responsibility pattern to handle different types of emotions effectively. The app supports four primary emotion categories: Happy, Sad, Angry, and Neutral.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published