qt: fix more Qt 6 deprecations compatible with Qt 5.12

Merged Fatih Uzunoğlu requested to merge fuzun/vlc:qt/qt6deprecations into master

These correct compile warnings, but the old style still works with Qt 6.5 (probably they are going to be removed in future minor version update).

Merge request reports