Skip to content

Instantly share code, notes, and snippets.

@MasterAler
MasterAler / serialization.hpp
Last active February 28, 2022 22:22
simple custom serialization example
#pragma once
#include <iostream>
#include <string>
#include <list>
#include <iterator>
#include <type_traits>
#include <algorithm>
/* This is a small & simple example
@MasterAler
MasterAler / SliderProxyStyle.h
Created November 1, 2018 12:32
SliderProxyStyle
#pragma once
#include <QProxyStyle>
/*!
* \brief The SliderProxyStyle class
* This proxy style adds "mouse direct jump" to QSlider, i.e.
* QSlider with this style receives the ability to have it's value set
* by clicking on the desired position.
* Source: https://stackoverflow.com/questions/11132597/qslider-mouse-direct-jump