testcode for Qt