<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div class="" style="">I'm trying to execute a external command and get the stdout and show in real time in a QListView</div><div class="" style="">My example code: <a href="http://dpaste.com/352EX9M" class="" style="">http://dpaste.com/352EX9M</a></div><div style="width:450px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px; margin-bottom: 5px;" contenteditable="false" id="enhancrCard_0" class=""><table class="" cellspacing="0" cellpadding="0" border="0" style="width:450px; height:auto; position: relative; display: block;"><tbody class="" style=""><tr class="" style=""><td class="" colspan="7" style="height: 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="" style="height: 1px; background-color: #e5e5e5; font-size: 1px;
 line-height:0px;"> </div></td></tr><tr class="" style=""><td rowspan="5" class="" style="width: 1px; background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;"><div class="" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td><td rowspan="5" class="" style="width: 14px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="width: 14px; background-color: #ffffff; font-size: 14pt;"> </div></td><td colspan="2" class="" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="height: 6px; background-color: #ffffff; font-size: 6pt;"> </div></td><td rowspan="5" class="" style="width: 20px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="width: 20px; background-color: #ffffff; font-size: 20pt;"> </div></td><td class="" rowspan="5" width="1" style="width: 1px;
 background-color: #e5e5e5; font-size: 1pt; border-collapse: collapse;"><div class="" style="width: 1px; background-color: #e5e5e5; font-size: 1pt;"> </div></td></tr><tr class="" style=""><td class="" colspan="2" style="width: 100%; vertical-align: middle; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';"><div class="" style="line-height:16.5px; background-color: #ffffff;  width: 414px;"><div class="" style="word-wrap: break-word; word-break: break-all;"><span class="" style=""></span><span class="" style=""></span><a href="http://dpaste.com/352EX9M" class="" style="text-decoration: none !important; color: #000000 !important; line-height: 100%; font-size: 18px; display: block;"><span class="" style="margin: 0; font-weight: normal;margin-bottom: 3px; font-size: 18px; line-height: 21px; max-height: 43px; color: #000000; overflow: hidden !important; display: inline-block;">dpaste: 352EX9M</span></a><div style="font-size: 13px; line-height:
 20px; color: #999999; max-height: 81px; font-family: 'Georgia', 'Times', 'Times New Roman', 'serif';overflow: hidden;" class="">#!/usr/bin/env python
#-*- coding: utf-8 -*-

import os, sys
from PyQt4 import QtCore, QtGui, uic

# MainWindow
class Init(QtGui.QMainWindow):
    def __init__(self):
        super(Init, self).__init__()
        self.window = uic.loadUi(os.path.join(os.getcwd(), "ui/main.ui"), sel...</div></div></div></td></tr><tr class="" style=""><td colspan="2" class="" style="height: 6px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="height: 6px; background-color: #ffffff; font-size: 6pt;"></div></td></tr><tr class="" style=""><td class="" style="vertical-align: middle; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="" style="font-size: 0pt;"><a href="http://dpaste.com/352EX9M" class="" style="color: black; text-decoration: none !important;cursor:pointer !important;" target="_blank"><span class="" style="display: inline-block; line-height: 11px; max-width: 314px; min-width: 254px; overflow: hidden; max-height: 13px; word-break: break-all;"><span class="" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none;
 -webkit-text-size-adjust:none; text-size-adjust:none;">View on <span style="font-weight: bold" class="">dpaste.com</span></span></span></a></div></td><td class="" style="vertical-align: middle; width: 100px; font-family: 'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div class="" style="max-width: 100px; min-width: 80px; overflow: hidden; text-align: right; line-height: 11px; max-height: 13px; font-size: 0pt;"><span class="" style="vertical-align:middle; font-size: 9px; line-height: 11px; color: #999999; -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust:none; text-size-adjust:none;">Preview by Yahoo</span></div></td></tr><tr class="" style=""><td colspan="2" class="" style="height: 9px; background-color: #ffffff; font-size: 0pt; border-collapse: collapse;"><div class="" style="height: 9px; background-color: #ffffff; font-size: 9pt;"></div></td></tr><tr class="" style=""><td class="" colspan="7" style="height:
 1px; background-color: #e5e5e5; font-size: 1px; border-collapse: collapse;"><div class="" style="height: 1px; background-color: #e5e5e5; font-size: 1px; line-height:0px"> </div></td></tr></tbody></table></div><div class="" style="">It is "working", but not in real time</div><div class="" style="">Some tip?</div><div class="" style=""><br class="" style=""></div></div></body></html>