fix detection of QButtonGroup