Applied fix to the weird UI in Mac (Qt 5.1.0)