Implementing a ruler widget in Qt
photomonkee.com