use qWarning instead of std::err