Update qtlib
Adapt code to latest qtlib update