Added method to clip by index
Merge branch 'master' into nonQtEvents