Qt-based painting infrastructure