add QDir, repair user getclass