Both applications can have their own Qt libs. Just copy the version you want to be used to the directory containing the application binary and it will use it. But anyway 4.0 and 4.5 should be binary compatible (of course it won't work the other way round).
Bookmarks