use qWarning instead of qDebug whenever possible
Merge pull request #378 from haiwen/use_qwarning_if_possible

use qWarning instead of qDebug whenever possible