Implement SDL functionality on qt