Issue #82 Ported to Qt5.2