Use Class QDebugStream redirect std::cout to QTextEdit to show logs (wit bugs)

it will crash during the process due to the reason about QTextEdit and
QDebugStream