Check enabled in copy and move function
Check if widget is NULL before call QCoreApplication::postEvent