generalized stuff... waiting for other Qt versions