use a simple QObject and StringIO for log window