This is the only reason I use the Qt overlay, so let's just grab the bit I need and put it here so I'm not dragging in experimental versions of Qt.