Skip to content

Instantly share code, notes, and snippets.

@vebmaster
vebmaster / qt-unix-signals.md
Created Apr 5, 2018 — forked from fffaraz/qt-unix-signals.md
Catch Unix signals in Qt applications
View qt-unix-signals.md

Unix signals in Qt applications

It's quite easy to catch unix signals in Qt applications. you may like to ignore or accept them.

#include <QCoreApplication>

#include <signal.h>
#include <unistd.h>
@vebmaster
vebmaster / requestmanager.cpp
Last active Mar 12, 2018 — forked from olafurjohannsson/requestmanager.cpp
Asynchronous HTTP network requests in C++ with Qt
View requestmanager.cpp
#include "requestmanager.h"
///
/// RequestManager constructor
///
/// Description: sets up a network access manager that
/// abstract the HTTP/TCP protocol
RequestManager::RequestManager(QObject *parent) : QObject(parent)
{