Generalized Parameter Capture for a Qt GUI