The ServerClientChatApplication is a server-client chat application that features a user-friendly graphical user interface (GUI) and is built using C++ and QT. It utilizes QTCPSocket and QTCPServer to implement the client and server functionalities, respectively. The application is designed to read and write from the socket descriptor.
To install the application, please follow these steps:
- Install the QT 5.12.12 framework.
- Install Visual Studio with the QT Tools Extension.
- Open the provided solution (.sln) file in Visual Studio for ease of access.
The project consists of four classes and one custom widget:
MainApplication
- this is the main class and is responsible for handling all program operations.Client
andServer
classes - these classes are used to represent the client and server, respectively.ConnectDialog
class - this class is used to open up a dialog box and receive input for the IP address, port number, and whether the program is used as a server or a client.MyMessage
class - this is a custom QTextEdit widget that adds several functionalities to the UI and other properties.
The following image illustrates the flow control between the classes:
Below are some screenshots of the application:
We welcome contributions to this project in the following ways:
- Adding styles to the application.
- Adding threads to it so that multiple chats can occur at the same time.
If you have any questions or concerns about this project, please feel free to contact us at the following email address: [email protected]
.