Update code to use new Qt5 methods