Fixes for Qt interface