I use QRubberBand to select the area on QWidget. I\'m doing it like it\'s shown in the official example:
QRubberBand
QWidget
void SelectDialog::mousePressEv