pub sub library in qt