Forgive me if I seem naive, but why would you cling to Qt, wrapping chromium, instead of transitioning phantomjs to use Chromium directly? What is Qt providing that something much lighter, such as chromium embedded framework, couldn't?
I've been poking around in the Cef3 source code, and it looks to me like a lot of the phantomjs code would port quite nicely to use Cef, and be simplified in implementation as well. They've got offscreen rendering working with it, so running headless isn't a problem. Static linking is not a problem either, and as far as I can tell, it would reduce the binary size. The javascript engine is accessible via Cef, so porting the JS part of Phantom would be completely doable.
As for rasterization, with a few patches to Cef, you could utilize chrome's PrintWebViewHelper code either directly or as a base. It already paginates, rasterizes, and generates PDFs of browser tab contents.
Best of all, chromium and cef already exist. Qt WebEngine is only so much vaporware at the moment, and is a long way from reaching stability. Proceeding with PhantomJS2 based on Qt 5.2 seems to me like so much wasted effort, since Qt is itself moving in a new direction, and the old Webkit stuff is going to go stale very quickly. In all likelihood, you'd end up with the same sort of deluge of issues that exist now because of stagnation with Qt and the Qt webkit port.
The Qt folks certainly see the writing on the wall -- WebKit as it was is effectively dead with the departure of Google, and good riddance IMO. Chrome, Opera, and now Qt will all be drinking the Blink koolaid, so why not join the party...
Am I missing something here?