Pressed ctrl+enter one line early :) So, unless I'm grossly mistaken QRect rg = rubberBand -> geometry () ; is not rg = self . rubberBand . geometry () but rather rg = QRect(self . rubberBand . geometry ())