Implementing a ruler widget in Qt · HackerTrans