add depth to qt constructor