QT internal working mechanism