A few months ago I gave a presentation to the BYU Unix Users Group on Qt GUI development. During the meeting, we created a simple chat room program called chatterbox. At the time I promised to post my source code with comments, a promise on which I am now making good.
Here is the code. Instructions for building and running it are below:
![]()
Ice Chests & Hard Coolers. Whether you’re taking a day-trip to the beach, heading off for a weekend camping adventure, or relaxing at an afternoon cookout, you can count on Igloo to have a cooler or ice chest to fit your needs. One Chat 4.2 – All-in-one messenger. March 11, 2018 One Chat combines chat and messaging services–WhatsApp, Facebook Messenger, Telegram, Skype, and Slack–into one simple application for multiple messaging services. Instruction Manual. 4.1 out of 5 stars with 167. Chat Room - 17 users - 74 minutes ago - current topic: Ubuntu Qt Discussion Channel 5.14.2 in Groovy, 5.12.8 in Focal, 5.12.4 in Eoan, 5.9.5 in Bionic, 5.5.1 in Xenial This channel is bridged to Telegram, ask us to be added This channel is LOGGED at irclogs.ubuntu.com; use implies acceptance of the Ubuntu IRC.
The client source code (chatterbox.zip)
The server source code (chatterboxd.zip) Build Instructions
You’ll need to install Qt for your operating system, at least version 4.3 or newer. Make sure “qmake” is in your path. On Windows, you’ll also want Visual Studio 2008 Express. Then, download and unzip the two zip files above. I’ll wait here while you do that.
Building the Server
One Chat Pro 4 9 5 Qt 5Building the Client
Build the client the same way. Note, it’s the chatterbox (no “d” on the end) directory.
What it Looks Like
Here’s what the client looks like when you run it:
One Chat Pro 4 9 5 Qt Le CreusetGetting Help
If you can’t get this to build or are running into some other problem, just leave a comment below, and I’ll get to it as soon as possible.
Qt is provided with an extensive set of network classes to support both client-based and server side network programming.
Gopro 4
These examples demonstrate the fundamental aspects of network programming with Qt.
One Chat Pro 4 9 5 Qt 8
One Chat Pro 4 9 5 Qt Dutch Oven
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |