commit initial version from qt mouse example