Small cahnges needed to make things work with QT5.
urlstr is alredy of type QString
Merged Huulivoide's qt5 branch so that both Qt4 and Qt5 work

Warning: only testing presence of Qt5, so Qt6 won't work.