Qt5 support.

Please help review the Qt 5 support.