Qt

Base64 encoding and decoding using Qt 5 framework

Karan Balkar
Hi everyone! In one of my previous posts, we had learnt how to configure and setup Qt for Windows. Base64 is basically a method using which we can encode binary data into a character set in order to transmit the data without any loss or modification of the contents. It is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation.

Sending Http Request Using Qt 5 framework

Karan Balkar
HTTP (Hypertext Transfer Protocol) works as a request-response protocol between a client and server. A web browser may be the client, and an application on a computer that hosts a web site may be the server. For example, a client (browser) submits an HTTP request to the server and then the server returns a response to the client. The response contains status information about the request as well as the requested content.

Getting Started With Qt

Karan Balkar
Hi guys, Qt is a cross-platform application framework used extensively for developing non-GUI programs and consoles for servers. It is written in C++ and works on major platforms including Android, iOS, Windows and more recently Sailfish MeeGo Linux. There exists three versions of Qt available on each of these platforms, namely: GUI Framework – commercial entry level GUI edition, stripped of network and database support (formerly named “Desktop Light”) Full Framework – complete commercial edition Open Source – complete Open Source edition

Parsing JSON using Qt 5 framework

Karan Balkar
Hello friends! In one of my previous posts, we had seen how to send a HTTP request using Qt. The response we got then was a JSON string. JSON is a subset of the object literal notation of JavaScript. It is basically a lightweight data-interchange format making it easy for humans to read and write. A JSON is build on two structures namely, A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list or associative array.

Zipping and unzipping files using Qt 5 framework

Karan Balkar
Hey everyone! Qt provides a QByteArray class that can be used to store raw bytes and traditional 8-bit terminated strings. Moreover, Qt also provides the QString class to store string data. QString is mainly used throughout the Qt API. Through this post, we will learn how to zip and unzip files using Qt. We will create a sample text file containing a message as follows, demo.txt This is a demo to zip and unzip files using Qt framework Pre-requisites: Qt Creator, MinGW compiler for Windows (64 bit)